Skip to content
Snippets Groups Projects
Commit a9743a16 authored by Thibault Debatty's avatar Thibault Debatty
Browse files

write and show git tag version

parent 702709b6
No related branches found
No related tags found
No related merge requests found
Pipeline #10297 passed
...@@ -46,6 +46,7 @@ build:tagged: ...@@ -46,6 +46,7 @@ build:tagged:
script: script:
# use previous image as a cache to speedup build process # use previous image as a cache to speedup build process
- docker pull $CI_REGISTRY_IMAGE:latest || true - docker pull $CI_REGISTRY_IMAGE:latest || true
- echo $CI_COMMIT_TAG > public/VERSION
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest . - docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:latest
......
DEV
...@@ -124,8 +124,9 @@ $dbh = new PDO("sqlite:" . __DIR__ . "/../db.sqlite"); ...@@ -124,8 +124,9 @@ $dbh = new PDO("sqlite:" . __DIR__ . "/../db.sqlite");
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<span class="text-muted"> <span class="text-muted">
<a href="https://gitlab.cylab.be/cylab/play/sqlite-injection">SQLite injection</a> | <a href="https://gitlab.cylab.be/cylab/play/sqlite-injection">SQLite injection</a>
by <a href="https://cylab.be">cylab.be</a> <?php echo file_get_contents(__DIR__ . '/VERSION') ?> |
<a href="https://cylab.be">cylab.be</a>
</span> </span>
</div> </div>
</footer> </footer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment