Skip to content

Commit

Permalink
ci: only push the image from main (#20)
Browse files Browse the repository at this point in the history
## What does this PR do?

only push the image from main
  • Loading branch information
Aden-Q authored May 15, 2024
1 parent 7e28ba3 commit bc7bcc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
if: github.ref == 'refs/heads/main'
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand Down

0 comments on commit bc7bcc7

Please sign in to comment.