From ad5511a6df3a41024d2295b4f4cf01ee91483a14 Mon Sep 17 00:00:00 2001 From: MatisseB Date: Thu, 27 Feb 2025 11:20:03 +0100 Subject: [PATCH] fix: use substring slicing for Docker tag extraction in workflow (#28) --- .github/workflows/release-image.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-image.yml b/.github/workflows/release-image.yml index 1c9bcfa..c187164 100644 --- a/.github/workflows/release-image.yml +++ b/.github/workflows/release-image.yml @@ -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