Skip to content

Commit

Permalink
github workflow add arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
loan-mgt committed May 12, 2024
1 parent 4164153 commit 1035ff8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,25 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
- name: Build and push Docker image for amd64
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Build and push Docker image for ARM
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}-arm
labels: ${{ steps.meta.outputs.labels }}
platform: linux/arm64,linux/arm/v7
build-args: |
DUM_FLYWAY_VALIDATE_VERSION=${{ github.ref }}
GOARCH=arm
GOARM=7

0 comments on commit 1035ff8

Please sign in to comment.