From 59fdddac80fc823e41547f9816eb00e385ffd894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 9 Oct 2023 12:44:21 +0300 Subject: [PATCH 1/2] Build docker images for all platforms in PR --- .github/workflows/docker-image.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 01a352b6fd..a3b9e24b60 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -83,8 +83,6 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 - # Run this only on tags and main branch - if: ${{ github.event_name != 'pull_request' }} env: APP_VERSION: ${{ steps.vars.outputs.version }} with: From 1d4232040a0e7d5dac3897034ce2f3c8aebd1c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 9 Oct 2023 12:44:38 +0300 Subject: [PATCH 2/2] Skip image push on PR --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a3b9e24b60..8217377911 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -88,7 +88,7 @@ jobs: with: context: . platforms: linux/amd64,linux/arm64,linux/arm/v7 - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: |