- echo $KUBE_CONFIG | base64 -d > $KUBECONFIG
- kubectl config view
- kubectl config set-credentials gitlab --token=$KUBE_TOKEN
- - kubectl -n builds set image deployment/builds $CI_REGISTRY_IMAGE:$CI_PIPELINE_IID
+ - kubectl -n builds set image deployment/builds builds=$CI_REGISTRY_IMAGE:$CI_PIPELINE_IID
- kubectl -n builds rollout status --timeout 60s deploy/builds || (kubectl -n builds rollout undo deploy/builds && false)
only:
refs: