diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index c10ce5f..64588b7 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -18,6 +18,7 @@ jobs: run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/differ:main . - name: Publish image + if: github.repository == 'vanilla-os/differ' && github.ref == 'refs/heads/main' run: | docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }} docker image push "ghcr.io/vanilla-os/differ:main"