Skip to content

Commit

Permalink
Merge pull request #385 from silinternational/fix-ghcr-push
Browse files Browse the repository at this point in the history
don't push branch tags to GHCR because it doesn't like tags with a slash
  • Loading branch information
briskt authored Nov 8, 2024
2 parents 9a8c6fe + 3709830 commit e674e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ jobs:
- name: Build and push Docker image to GitHub Container Registry
uses: docker/build-push-action@v5
if: startsWith(github.ref, 'refs/tags')
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GITHUB_REF_NAME=${{ github.ref_name }}
GITHUB_REF_NAME=${{ github.ref_name }}

0 comments on commit e674e3f

Please sign in to comment.