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:
parent
a7114c23c3
commit
7e362da1fb
@ -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
|
||||||
|
@ -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 — 2022 — Made with ❤ and <a href="https://gitlab.com/lovallat/louis-vallat.xyz" target="_blank">Open Source</a>.
|
Louis Vallat — 2022 — Made with ❤ and <a href="https://gitlab.com/lovallat/louis-vallat.xyz" target="_blank">Open Source</a> — __VERSION__
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user