From 1a6353dff0186d3481e28d4b35afde4e233ffa46 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 9 Dec 2021 11:47:29 +0100 Subject: [PATCH] Add image version badge generation to pipeline --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 047524d..c7a8452 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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