Add image version badge generation to pipeline

This commit is contained in:
Tanguy Herbron 2021-12-09 11:47:29 +01:00
parent 7939921155
commit 1a6353dff0

View File

@ -43,3 +43,8 @@ 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
artifacts:
paths:
- image_version.svg
expire_in: 1 month