diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 468637c..69b2e96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,10 +32,13 @@ build: # Deploy to production deploy: stage: deploy - image: bitnami/kubectl:latest - variables: - KUBE_CONTEXT: "stare/infra:ovh-cluster" + image: + name: bitnami/kubectl:latest + entrypoint: [''] script: + - kubectl config get-contexts + - kubectl config use-context stare/infra:ovh-cluster + - kubectl get pods - kubectl rollout restart deployment/proxy-detection-api - kubectl rollout status deployment/proxy-detection-api --timeout=300s - kubectl get pods -l app=proxy-detection-api