From bb4835440e7047755aa900bea7f6971e660a2209 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 21 Dec 2023 14:36:08 -0600 Subject: [PATCH] ci: Only push from main branch --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ed53091..56d6135 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - push: true + push: ${{ github.secret_source == 'Actions' && github.ref_name == 'main' }} platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}