Skip to content

Commit

Permalink
fix: set publish image job for main repo only
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed Dec 7, 2023
1 parent 213d8bd commit 3f9ba9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3f9ba9e

Please sign in to comment.