Skip to content

Commit

Permalink
fix remove v error
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 authored and kurator-bot committed Jan 18, 2024
1 parent fded0e7 commit ef5865b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
jobs:
build-push:
runs-on: ubuntu-latest
env:
# Gets the tag name and removes the 'v' prefix
VERSION: ${{ github.ref_name#v }}

steps:
- name: Get image version
run: |
echo "image_version=$(echo ${GITHUB_REF##*/v})" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -25,11 +25,11 @@ jobs:
run: make build

- name: Build Docker Image
run: VERSION=$VERSION make docker
run: VERSION=${{ env.image_version }} make docker

- name: Login to ghcr.io
# This is where you will update the PAT to GITHUB_TOKEN
run: echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u $ --password-stdin

- name: Push Docker Image
run: VERSION=$VERSION make docker-push
run: VERSION=${{ env.image_version }} make docker-push

0 comments on commit ef5865b

Please sign in to comment.