Add image version badge generation to pipeline
This commit is contained in:
parent
7939921155
commit
1a6353dff0
@ -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
|
||||
|
Reference in New Issue
Block a user