Skip to content

Commit

Permalink
fix docker release action (#704)
Browse files Browse the repository at this point in the history
* Update on-release.yaml (#703)

* Update on-release.yaml
  • Loading branch information
darrenvechain authored Apr 17, 2024
1 parent f9e6ba4 commit 88c7c86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: Validate VERSION
run: |
if [ "$(cat cmd/thor/VERSION)" != "${{ github.ref_name }}" ]; then
version=$(cat cmd/thor/VERSION)
tag="${{ github.ref_name }}"
tag="${tag#v}" # Remove the "v" prefix from the tag
if [ "$tag" != "$version" ]; then
echo "VERSION file does not match tag"
exit 1
fi
Expand Down Expand Up @@ -56,5 +59,5 @@ jobs:
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=${{ github.event.release.tag_name }}
type=raw,value=${{ github.ref_name }}
type=raw,value=latest

0 comments on commit 88c7c86

Please sign in to comment.