Switch from curl to wget for badge generation

This commit is contained in:
Tanguy Herbron 2021-12-09 12:20:00 +01:00
parent 344e361693
commit b8951a21bc

View File

@ -26,7 +26,7 @@ build-image:
script:
- source .env.update
- if [ "$NEED_UPDATE" = false ]; then exit 0; fi
- apk add git wget curl
- apk add git wget
- git clone https://gitlab.com/gitlab-org/omnibus-gitlab
- cd omnibus-gitlab
- "GITLAB_VER=$(git tag | sort -V | grep -v rc | grep ce | tail -1)"
@ -43,7 +43,7 @@ build-image:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY/athens-school/gitlab:$GITLAB_SHORT_VER .
- docker push $CI_REGISTRY/athens-school/gitlab:$GITLAB_SHORT_VER
- curl "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
artifacts:
paths:
- image_version.svg