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
6cb443d6e16b
Commit
fbc8d99b
authored
Mar 12, 2021
by
Simon Chabot
Browse files
ci: only deploy latest image when it's published
parent
9b92803838fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6cb443d6
...
...
@@ -69,8 +69,8 @@ deploy_review:
image
:
name
:
lachlanevenson/k8s-kubectl:latest
stage
:
deploy
#
rules:
#
- if: '$CI_COMMIT_REF_NAME == "branch/default"'
rules
:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"branch/default"'
script
:
-
kubectl version
-
sed "s@r.intra.logilab.fr/intranet/fresh@$CI_REGISTRY_IMAGE:latest@" deploy/deployment.yaml | kubectl -n intranet apply -f -
...
...
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