Added a version flag in footer

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-01-17 09:43:19 +01:00
parent b371530954
commit 5feeca1e9b
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ variables:
release: release:
stage: release stage: release
script: 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 login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build . -t $CONTAINER_BRANCH_IMAGE - docker build . -t $CONTAINER_BRANCH_IMAGE
- docker push $CONTAINER_BRANCH_IMAGE - docker push $CONTAINER_BRANCH_IMAGE
@ -29,6 +30,7 @@ release:
release-master: release-master:
stage: release stage: release
script: 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 login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build . -t $CONTAINER_RELEASE_IMAGE - docker build . -t $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE - docker push $CONTAINER_RELEASE_IMAGE

View File

@ -2,7 +2,8 @@
<footer> <footer>
<p> <p>
License: <a href="https://choosealicense.com/licenses/gpl-3.0/" target="_blank">G.P.L. v3</a><br> License: <a href="https://choosealicense.com/licenses/gpl-3.0/" target="_blank">G.P.L. v3</a><br>
Made with ❤ and <a href="https://gitlab.com/lovallat/blog" target="_blank">Open Source Software</a> Made with ❤ and <a href="https://gitlab.com/lovallat/blog" target="_blank">Open Source Software</a> &mdash;
Version: <code>__VERSION__</code>
</p> </p>
</footer> </footer>
</body> </body>