Skip to content

Commit

Permalink
ci: Restore the commented-out code for image pushing.
Browse files Browse the repository at this point in the history
  • Loading branch information
real-zony committed Dec 12, 2023
1 parent 289da6f commit ce13f40
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ce13f40

Please sign in to comment.