From 78c159cd59fbce870a8bc36112e41eae57f322f7 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 16 Sep 2022 23:15:16 +0800 Subject: [PATCH] chore: fix build tag --- .github/workflows/build-and-push-release-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.yml index affabf8c..5394f455 100644 --- a/.github/workflows/build-and-push-release-image.yml +++ b/.github/workflows/build-and-push-release-image.yml @@ -17,9 +17,9 @@ jobs: - name: Extract build args # Extract version from branch name - # Example: branch name `release/v1.0.0` sets up env.VERSION=1.0.0 + # Example: branch name `release/1.0.0` sets up env.VERSION=1.0.0 run: | - echo "VERSION=${GITHUB_REF_NAME#release/v}" >> $GITHUB_ENV + echo "VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV - name: Login to Docker Hub uses: docker/login-action@v2 @@ -41,4 +41,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: neosmemo/memos:latest, neosmemo/memos:${{ env.VERSION }} + tags: neosmemo/memos:latest, neosmemo/memos:v${{ env.VERSION }}