Skip to content

Commit

Permalink
Merge pull request #573 from kurator-bot/cherry-pick-572-to-release-0.6
Browse files Browse the repository at this point in the history
[release-0.6] fix remove ‘v' in image version error
  • Loading branch information
kurator-bot authored Jan 18, 2024
2 parents fded0e7 + ef5865b commit ebe9f0d
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 ebe9f0d

Please sign in to comment.