From ce13f40469daa64d812a963248ba6d807840d150 Mon Sep 17 00:00:00 2001 From: real-zony Date: Tue, 12 Dec 2023 10:51:06 +0800 Subject: [PATCH] ci: Restore the commented-out code for image pushing. --- .github/workflows/docker-image.yaml | 44 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index cf97d14..4731352 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -10,28 +10,28 @@ on: 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-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 steps: