From 7db866e071716d53df53fd054df202b248b3d667 Mon Sep 17 00:00:00 2001 From: Saptarshi Sarkar Date: Thu, 5 Oct 2023 16:55:43 +0530 Subject: [PATCH] ci: Added docker image publish restriction to only this repo and removed docker pushes to fork --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c242f9bb5..76a695a81 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -151,7 +151,7 @@ jobs: uses: docker/build-push-action@v5.0.0 with: context: ${{ matrix.docker_context }} - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' }} && ${{ github.repository == 'SaptarshiSarkar12/Drifty' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha