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: script:
- source .env.update - source .env.update
- if [ "$NEED_UPDATE" = false ]; then exit 0; fi - 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 - git clone https://gitlab.com/gitlab-org/omnibus-gitlab
- cd omnibus-gitlab - cd omnibus-gitlab
- "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)"
@ -43,7 +43,7 @@ build-image:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY/athens-school/gitlab:$GITLAB_SHORT_VER . - docker build -t $CI_REGISTRY/athens-school/gitlab:$GITLAB_SHORT_VER .
- docker push $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: artifacts:
paths: paths:
- image_version.svg - image_version.svg