Skip to content

Commit

Permalink
fix: trim the prefix 'v' of the oras image
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Mar 28, 2024
1 parent 10be172 commit 5178993
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }}
- name: Upload via oras
run: |
oras push docker.io/linuxsuren/hd:${{ steps.vars.outputs.tag }} release
oras push ${{ env.REGISTRY }}/linuxsuren/hd:${{ steps.vars.outputs.tag }} release
export TAG=${{ steps.vars.outputs.tag }}
TAG=${TAG#v}
oras push docker.io/linuxsuren/hd:$TAG release
oras push ${{ env.REGISTRY }}/linuxsuren/hd:$TAG release
image:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 5178993

Please sign in to comment.