diff --git a/.github/workflows/atlantis-image.yml b/.github/workflows/atlantis-image.yml index c9c376a468..c7c6694686 100644 --- a/.github/workflows/atlantis-image.yml +++ b/.github/workflows/atlantis-image.yml @@ -32,7 +32,7 @@ jobs: # Set docker repo to either the fork or the main repo where the branch exists DOCKER_REPO: ghcr.io/${{ github.repository }} # Push if not a pull request and references the main branch - PUSH: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} + PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }} steps: - uses: actions/checkout@v3