Skip to content

Commit 5178993

Browse files
authored
fix: trim the prefix 'v' of the oras image
1 parent 10be172 commit 5178993

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jobs:
3737
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
3838
- name: Upload via oras
3939
run: |
40-
oras push docker.io/linuxsuren/hd:${{ steps.vars.outputs.tag }} release
41-
oras push ${{ env.REGISTRY }}/linuxsuren/hd:${{ steps.vars.outputs.tag }} release
40+
export TAG=${{ steps.vars.outputs.tag }}
41+
TAG=${TAG#v}
42+
oras push docker.io/linuxsuren/hd:$TAG release
43+
oras push ${{ env.REGISTRY }}/linuxsuren/hd:$TAG release
4244
4345
image:
4446
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)