Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
metagenedb
Commits
915bc409
Commit
915bc409
authored
4 years ago
by
Kenzo-Hugo Hillion
♻️
Browse files
Options
Downloads
Patches
Plain Diff
add commit hash to footer
parent
4644bb46
No related branches found
No related tags found
2 merge requests
!59
Prod
,
!54
Add build number based on commit hash
Pipeline
#31828
passed
4 years ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ci/build/build_frontend.sh
+1
-1
1 addition, 1 deletion
ci/build/build_frontend.sh
docker-compose.yaml
+1
-1
1 addition, 1 deletion
docker-compose.yaml
frontend/src/App.vue
+1
-2
1 addition, 2 deletions
frontend/src/App.vue
frontend/src/components/Navbar.vue
+1
-1
1 addition, 1 deletion
frontend/src/components/Navbar.vue
with
4 additions
and
5 deletions
ci/build/build_frontend.sh
+
1
−
1
View file @
915bc409
#!/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
}
"
This diff is collapsed.
Click to expand it.
docker-compose.yaml
+
1
−
1
View file @
915bc409
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
frontend/src/App.vue
+
1
−
2
View file @
915bc409
...
...
@@ -27,8 +27,7 @@ export default {
},
computed
:
{
commitHash
()
{
return
process
.
env
.
GIT_COMMIT
;
console
.
log
(
process
.
env
)
return
process
.
env
.
VUE_APP_GIT_COMMIT
;
},
}
};
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/Navbar.vue
+
1
−
1
View file @
915bc409
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment