Skip to content

Commit

Permalink
fix: add extra step to compute docker image tag. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatisseB authored Feb 27, 2025
1 parent ad5511a commit 1cf4fe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Set tags value
- name: Set tags value
id: set-tags
run: echo "tags=$(echo ${{ github.ref_name }} | grep -oP '(?<=lgc/).*' || echo ${{ github.ref_name }})" >> $GITHUB_ENV

# Extract metadata (tags, labels) for Docker
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ github.ref_name[4:] }}
tags: ${{ steps.set-tags.outputs.tags }}

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

0 comments on commit 1cf4fe0

Please sign in to comment.