Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
b2c1b45d
Commit
b2c1b45d
authored
Jun 08, 2020
by
Kenzo-Hugo Hillion
♻
Browse files
specify commit sha in kubernetes spec
parent
2eb85154
Pipeline
#31833
passed with stages
in 3 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ci/build/build_frontend.sh
View file @
b2c1b45d
#!/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
}
"
--build-arg
VUE_APP_GIT_COMMIT
=
${
CI_COMMIT_SHORT_SHA
}
frontend/
docker build
-t
"
$CI_REGISTRY_IMAGE
/frontend:
${
CI_COMMIT_REF_NAME
}
"
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
}
"
ci/kubernetes/frontend.yaml
View file @
b2c1b45d
...
...
@@ -21,6 +21,8 @@ spec:
env
:
-
name
:
NODE_ENV
value
:
"
production"
-
name
:
VUE_APP_GIT_COMMIT
value
:
${CI_COMMIT_SHORT_SHA}
ports
:
-
containerPort
:
80
resources
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment