Skip to content

Commit

Permalink
ci: only push to registry if in original repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Feb 24, 2023
1 parent 2b69ebe commit e02f819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -134,7 +134,7 @@ jobs:
GIT_REPO=${{ steps.docker.outputs.gitRepo }}
VERSION=${{ steps.docker.outputs.version }}
platforms: ${{ steps.docker.outputs.platforms }}
push: true
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.docker.outputs.image_name }}

- name: Run GoReleaser
Expand Down

0 comments on commit e02f819

Please sign in to comment.