From ee90f664505a7f992146942d228c93b6d55696f9 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 31 Jan 2024 19:33:52 -0500 Subject: [PATCH] remove test branch, only publish if not PR Signed-off-by: strawberry --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68057ecf..cd29f050 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: push: branches: - main - - registry-pushes env: # Required to make some things output color @@ -165,6 +164,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Publish to Dockerhub + if: github.event_name != 'pull_request' env: IMAGE_NAME: docker.io/${{ github.repository }} IMAGE_SUFFIX_AMD64: amd64 @@ -193,6 +193,7 @@ jobs: fi - name: Publish to GitHub Container Registry + if: github.event_name != 'pull_request' env: IMAGE_NAME: ghcr.io/${{ github.repository }} IMAGE_SUFFIX_AMD64: amd64