This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
Docker guacd Build #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker guacd Build | |
on: | |
workflow_dispatch: | |
jobs: | |
DOCKERHUB_Guacd_Build: | |
name: Docker Guacd Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Private Actions Checkout | |
uses: actions/checkout@v2.3.4 | |
- name: Docker Setup QEMU | |
uses: docker/setup-qemu-action@v1.2.0 | |
- name: Docker Setup Buildx | |
uses: docker/setup-buildx-action@v1.6.0 | |
- name: Docker Login | |
uses: docker/login-action@v1.10.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Docker Aliyun Login | |
uses: docker/login-action@v1.10.0 | |
with: | |
registry: registry.cn-beijing.aliyuncs.com | |
username: ${{ secrets.ALI_USERNAME }} | |
password: ${{ secrets.ALI_PASSWORD }} | |
- name: Build and push Docker images | |
uses: docker/build-push-action@v2.7.0 | |
with: | |
context: . | |
platforms: linux/arm64,linux/arm/v7,linux/amd64 | |
file: guacd/Dockerfile | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/guacd:1.5.3 | |
${{ secrets.DOCKERHUB_USERNAME }}/guacd:latest | |
registry.cn-beijing.aliyuncs.com/${{ secrets.DOCKERHUB_USERNAME }}/guacd:1.5.3 | |
registry.cn-beijing.aliyuncs.com/${{ secrets.DOCKERHUB_USERNAME }}/guacd:latest | |
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/guacd:cache | |
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/guacd:cache,mode=max |