From b1f580bdfcd6cc4c7e038ec9d64496b7e85bdb5a Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Sun, 1 Sep 2024 21:55:18 +0800 Subject: [PATCH] client+server: push Docker images only after merge to maint --- .github/workflows/build-containers.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index 2a42f221..5ea68763 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -59,7 +59,7 @@ jobs: - name: Build container run: > - docker buildx build --push + docker buildx build ${{ github.event_name != 'pull_request' && '--push' || '' }} --platform linux/amd64,linux/arm/v7,linux/arm64/v8 --build-arg BUILD_INFO=v${{ steps.metadata.outputs.build_info }} --build-arg BUILD_DATE=${{ steps.metadata.outputs.build_date }} @@ -117,7 +117,7 @@ jobs: - name: Build container run: > - docker buildx build --push + docker buildx build ${{ github.event_name != 'pull_request' && '--push' || '' }} --platform linux/amd64,linux/arm/v7,linux/arm64/v8 --build-arg BUILD_INFO=v${{ steps.metadata.outputs.build_info }} --build-arg BUILD_DATE=${{ steps.metadata.outputs.build_date }}