diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4a292c8..82552fd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 }} \ No newline at end of file + GOARCH=arm + GOARM=7