Commit 915bc409 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add commit hash to footer

parent 4644bb46
Pipeline #31828 passed with stages
in 3 minutes and 18 seconds
#!/bin/sh
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
docker build -t "$CI_REGISTRY_IMAGE/frontend:${CI_COMMIT_REF_NAME}" frontend/
docker build -t "$CI_REGISTRY_IMAGE/frontend:${CI_COMMIT_REF_NAME}" --build-arg VUE_APP_GIT_COMMIT=${CI_COMMIT_SHORT_SHA} frontend/
docker tag "$CI_REGISTRY_IMAGE/frontend:${CI_COMMIT_REF_NAME}" "$CI_REGISTRY_IMAGE/frontend:latest"
docker push "$CI_REGISTRY_IMAGE/frontend:${CI_COMMIT_REF_NAME}"
......@@ -45,7 +45,7 @@ services:
- postgresql
environment:
NODE_ENV: development
GIT_COMMIT: local-test
VUE_APP_GIT_COMMIT: "local-dev-env"
nginx:
image: nginx:1.13.12-alpine
......
......@@ -27,8 +27,7 @@ export default {
},
computed: {
commitHash() {
return process.env.GIT_COMMIT;
console.log(process.env)
return process.env.VUE_APP_GIT_COMMIT;
},
}
};
......
......@@ -9,7 +9,7 @@
<v-spacer></v-spacer>
<Help/>
<v-btn href="https://gitlab.pasteur.fr/metagenomics/metagenedb" flat target="_blank" class="ma-0 pa-2">
<span>Source</span>
<span>GitLab</span>
<v-icon class="ml-1">fab fa-gitlab</v-icon>
</v-btn>
</v-toolbar>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment