diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index b14a6da..d8c5697 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -5,10 +5,15 @@ on: branches: - main tags: - - '*' + - "*" + workflow_run: + workflows: ["Continuous integration"] # Name of the first workflow + types: + - completed jobs: build: + if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} runs-on: ubuntu-latest steps: @@ -18,6 +23,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: @@ -30,6 +40,7 @@ jobs: with: context: . push: true + platforms: linux/amd64,linux/arm64/v8 # Multi-architecture targets tags: | ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }}