From ac24df063b200409f17cb2890027f0b617403338 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Mon, 11 Nov 2024 21:48:18 +0800 Subject: [PATCH] fix(publish-docker): correct version extraction from tag --- .github/workflows/publish-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 7e5a708d..29f19e5a 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -49,7 +49,7 @@ jobs: fi # This strips the "v" prefix from the tag name. - [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') + [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo "$VERSION" | sed -e 's|refs/tags/v||') # This uses the Docker `latest` tag convention. [ "$VERSION" == "master" ] && VERSION=latest echo IMAGE_ID=$IMAGE_ID