From 2b15da0b34a16069d684f04c8504d0758ec41e5b Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Fri, 27 May 2022 22:57:44 +0200 Subject: [PATCH] Fix version comparison in CI --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aaca394..8cc6da1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,7 @@ build-image: - "GITLAB_VER=$(git tag | sort -V | grep -v rc | grep ce | tail -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 - - 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 - "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"