Added a version flag in footer
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
b371530954
commit
5feeca1e9b
@ -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
|
||||||
|
@ -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> —
|
||||||
|
Version: <code>__VERSION__</code>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user