Fix version comparison in CI
This commit is contained in:
parent
cbc2cd0eba
commit
2b15da0b34
@ -14,7 +14,7 @@ build-image:
|
|||||||
- "GITLAB_VER=$(git tag | sort -V | grep -v rc | grep ce | tail -1)"
|
- "GITLAB_VER=$(git tag | sort -V | grep -v rc | grep ce | tail -1)"
|
||||||
- "GITLAB_SHORT_VER=$(echo $GITLAB_VER | cut -d '+' -f 1)"
|
- "GITLAB_SHORT_VER=$(echo $GITLAB_VER | cut -d '+' -f 1)"
|
||||||
- wget "https://img.shields.io/badge/image version-$GITLAB_SHORT_VER-informational" -O ../image_version.svg
|
- wget "https://img.shields.io/badge/image version-$GITLAB_SHORT_VER-informational" -O ../image_version.svg
|
||||||
- if [ $HALIA_VER != $GITLAB_VER ]; then echo "No update available, exciting..."; exit 0; fi
|
- if [ $HALIA_VER == $GITLAB_SHORT_VER ]; then echo "No update available, exciting..."; exit 0; fi
|
||||||
- git checkout $GITLAB_VER
|
- git checkout $GITLAB_VER
|
||||||
- "GITLAB_VER=$(echo $GITLAB_VER | tr '+' -)"
|
- "GITLAB_VER=$(echo $GITLAB_VER | tr '+' -)"
|
||||||
- NEW_URL="wget --no-check-certificate --content-disposition 'https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/focal/gitlab-ce_${GITLAB_VER}_arm64.deb/download.deb' -O /tmp/gitlab.deb"
|
- NEW_URL="wget --no-check-certificate --content-disposition 'https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/focal/gitlab-ce_${GITLAB_VER}_arm64.deb/download.deb' -O /tmp/gitlab.deb"
|
||||||
|
Reference in New Issue
Block a user