Build Docker Image And Push #5
Workflow file for this run
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: "Build Docker Image And Push" | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Tag' | |
required: true | |
default: 'latest' | |
jobs: | |
build-and-push-docker-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
name: "Set up QEMU" | |
- uses: docker/setup-buildx-action@v3 | |
name: "Set up Docker Buildx" | |
- uses: docker/login-action@v3 | |
name: "Login to Docker Hub" | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
registry: ghcr.io | |
- uses: docker/build-push-action@v5 | |
name: "Build and push" | |
with: | |
push: true | |
tags: ghcr.io/real-zony/ali-cloud-dynamic-dns:${{ github.event.release.name }} | |
file: ./AliCloudDynamicDNS/Dockerfile | |
context: ./AliCloudDynamicDNS | |
platforms: linux/amd64,linux/arm64 | |
# build-binary: | |
# runs-on: ubuntu-latest |