chore: strip `v` prefix in tag name when tagging docker image

release-0.0 v0.0.1-rc.1
Meng Zhang 2023-08-30 15:40:40 +08:00 committed by GitHub
parent 104fea61ad
commit 0eb489b9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ jobs:
env: env:
REF_NAME: ${{ github.ref_name }} REF_NAME: ${{ github.ref_name }}
run: | run: |
echo "TAG_NAME=$(echo $REF_NAME | sed 's/main/latest/g')" >>${GITHUB_ENV} echo "TAG_NAME=$(echo $REF_NAME | sed 's/main/latest/g' | sed 's/^v//g')" >>${GITHUB_ENV}
- uses: int128/docker-build-cache-config-action@v1 - uses: int128/docker-build-cache-config-action@v1
id: cache id: cache