Skip to content

Commit

Permalink
fix: use substring slicing for Docker tag extraction in workflow (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatisseB authored Feb 27, 2025
1 parent 8c9d067 commit ad5511a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Remove the "lgc/" prefix from the git tag (e.g. "lgc/v1.0.0" becomes "v1.0.0")
tags: ${{ replace(github.ref_name, 'lgc/', '') }}
tags: ${{ github.ref_name[4:] }}

# Build and push Docker image with Buildx (don't push on PR)
- name: Build and push Docker image
Expand Down

0 comments on commit ad5511a

Please sign in to comment.