Skip to content

Commit

Permalink
fix: resolve tagging correctly (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
papey authored Jul 28, 2024
1 parent 00db411 commit d1d6b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Resolve image tag
id: tag
run: |
if [ "${{ github.ref }}" == "refs/tags/"* ]; then
if [[ "${{ github.ref }}" =~ "refs/tags/" ]]; then
TAG=${{ github.ref_name }}
else
TAG="latest"
Expand All @@ -91,7 +91,7 @@ jobs:
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${TAG}
org.opencontainers.image.version=${env.TAG}
org.opencontainers.image.authors="Wilfried OLLIVIER"
org.opencontainers.image.title="trostani"
org.opencontainers.image.description=${{ github.event.repository.description }}
Expand Down

0 comments on commit d1d6b66

Please sign in to comment.