Skip to content

Commit

Permalink
Merge pull request #80 from smoench/patch-1
Browse files Browse the repository at this point in the history
fix docker multi-arch build and push to DockerHub
  • Loading branch information
strider2038 authored Nov 29, 2022
2 parents 5ca25ba + 28e92ef commit a043e5b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,24 @@ jobs:
run: echo "BUILD_TIME=$(date)" >> $GITHUB_ENV
- name: Environment Printer
uses: managedkaos/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository:
always_pull: true
build_args: APP_VERSION=${{ env.APP_VERSION }}, BUILD_TIME=${{ env.BUILD_TIME }}
pull: true
build-args: |
APP_VERSION=${{ env.APP_VERSION }}
BUILD_TIME=${{ env.BUILD_TIME }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit a043e5b

Please sign in to comment.