Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
fresh
Commits
9e24fe013351
Commit
ec00922f
authored
Mar 12, 2021
by
Viet-Hung Nhu
Browse files
Add deploy stage on gitlab ci
parent
df58125f31e1
Pipeline
#41304
passed with stages
in 7 minutes and 27 seconds
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9e24fe01
...
...
@@ -3,6 +3,7 @@ image: python:3.7
stages
:
-
test
-
release
-
deploy
.test
:
stage
:
test
...
...
@@ -63,3 +64,16 @@ image_build_latest:
--destination $CI_REGISTRY_IMAGE:latest
rules
:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"branch/default"'
deploy_review
:
image
:
name
:
lachlanevenson/k8s-kubectl:latest
stage
:
deploy
# rules:
# - if: '$CI_COMMIT_REF_NAME == "branch/default"'
script
:
-
kubectl version
-
sed "s@r.intra.logilab.fr/intranet/fresh@$CI_REGISTRY_IMAGE@" deploy/deployment.yaml | kubectl -n intranet apply -f -
-
kubectl -n intranet rollout restart deployment/fresh deployment/fresh-scheduler
-
kubectl -n intranet rollout status --timeout=180s deployment/fresh
-
kubectl -n intranet rollout status --timeout=180s deployment/fresh-scheduler
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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