Skip to content

Commit

Permalink
Merge pull request #160 from klihub/release-0.2
Browse files Browse the repository at this point in the history
[release-0.2]: cherry-pick #156: fix image tagging scheme in publishing workflow.
  • Loading branch information
fmuyassarov authored Oct 17, 2023
2 parents ff43d1f + f90ee4c commit 320e5d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
tag=unstable
;;
refs/heads/release-*)
tag="${GITREF#refs/heads/release-}-unstable"
tag="v${GITREF#refs/heads/release-}-unstable"
;;
*)
echo "error: can't determine tag."
Expand Down
9 changes: 4 additions & 5 deletions scripts/build/get-buildid
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ dotgit_version() {
fi

case "$_v" in
v*) _v="${_v#v}"
;;
v*) ;;
*)
_count=$(git rev-list --count HEAD)
_v="0.0.0-$_count-g$_id$_dirty"
_v="v0.0.0-$_count-g$_id$_dirty"
;;
esac

Expand Down Expand Up @@ -127,7 +126,7 @@ unknown_version() {

package_versions() {
case "$VERSION" in
[0-9.]**-g[0-9a-f]*)
v[0-9.]**-g[0-9a-f]*)
local _full="$VERSION"
local _numeric=${_full%%-*}
local _cntsha1=${_full#*-}
Expand All @@ -143,7 +142,7 @@ package_versions() {
RPM=$(echo "$VERSION" | tr '+-' '_')
DEB=$VERSION
;;
[0-9.]*)
v[0-9.]*)
RPM=$VERSION
DEB=$VERSION
;;
Expand Down

0 comments on commit 320e5d9

Please sign in to comment.