From 5feeca1e9b7e7474ebd94a4b495a177a8046d668 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Mon, 17 Jan 2022 09:43:19 +0100 Subject: [PATCH] Added a version flag in footer Signed-off-by: Louis Vallat --- .gitlab-ci.yml | 2 ++ src/_footer.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d1b49d..2bda374 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,7 @@ variables: release: stage: release script: + - sed -i "s/__VERSION__/${CI_COMMIT_SHORT_SHA}/" src/_footer.html - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build . -t $CONTAINER_BRANCH_IMAGE - docker push $CONTAINER_BRANCH_IMAGE @@ -29,6 +30,7 @@ release: release-master: stage: release script: + - sed -i "s/__VERSION__/${CI_COMMIT_SHORT_SHA}/" src/_footer.html - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build . -t $CONTAINER_RELEASE_IMAGE - docker push $CONTAINER_RELEASE_IMAGE diff --git a/src/_footer.html b/src/_footer.html index 9f2298b..56446d9 100644 --- a/src/_footer.html +++ b/src/_footer.html @@ -2,7 +2,8 @@