Skip to content
Snippets Groups Projects
Commit 33843266 authored by Marco Lorini's avatar Marco Lorini
Browse files

2021-05-21 ML: CI/CD - k8s change from 'set image' command to 'rollout...

2021-05-21 ML: CI/CD - k8s change from 'set image' command to 'rollout restart' command, in deploy stage
parent 1bc1374e
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,8 @@ deploy:
- mkdir .kube/
- echo -n $KUBE_CONFIG | base64 -d > .kube/config
script:
- kubectl --kubeconfig .kube/config --namespace $KUBE_NAMESPACE set image deployment/$KUBE_DEPLOYMENT $KUBE_CONTAINER=$CI_REGISTRY/$CI_REGISTRY_IMAGE:$CI_REGISTRY_IMAGE_TAG
# - kubectl --kubeconfig .kube/config --namespace $KUBE_NAMESPACE set image deployment/$KUBE_DEPLOYMENT $KUBE_CONTAINER=$CI_REGISTRY/$CI_REGISTRY_IMAGE:$CI_REGISTRY_IMAGE_TAG
- kubectl --kubeconfig .kube/config --namespace $KUBE_NAMESPACE rollout restart deployment/$KUBE_DEPLOYMENT
tags:
- kubernetes
- register-front
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment