feat: added commit short sha to index page to check version with corresponding git commit

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2022-06-16 11:03:49 +02:00
parent a7114c23c3
commit 7e362da1fb
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283
2 changed files with 3 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/index.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/index.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

@ -235,7 +235,7 @@ PAGE CODED BY :
Design inspiré par <a href="https://louisgrasset.fr/" target="_blank">ceci</a> et <a href="https://dribbble.com/shots/6672981-Personal-Website-Idea-V2/attachments/6672981-Personal-Website-Idea-V2?mode=media" target="_blank">ceci</a>. Design inspiré par <a href="https://louisgrasset.fr/" target="_blank">ceci</a> et <a href="https://dribbble.com/shots/6672981-Personal-Website-Idea-V2/attachments/6672981-Personal-Website-Idea-V2?mode=media" target="_blank">ceci</a>.
</p> </p>
<p class="lightgrey" id="copyright"> <p class="lightgrey" id="copyright">
Louis Vallat &mdash; 2022 &mdash; Made with ❤ and <a href="https://gitlab.com/lovallat/louis-vallat.xyz" target="_blank">Open Source</a>. Louis Vallat &mdash; 2022 &mdash; Made with ❤ and <a href="https://gitlab.com/lovallat/louis-vallat.xyz" target="_blank">Open Source</a> &mdash; __VERSION__
</p> </p>
</footer> </footer>
</body> </body>