diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 284eac1c776d494f750007b24064e90075efe6c4..b3bd3a0fc24b6f1a6a55aea424f890aee20b0d0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -470,10 +470,12 @@ delete-helm-release:prod: load-website:dev: image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION stage: load-website + variables: + NAMESPACE: "defense-finder-dev" rules: - if: $CI_COMMIT_BRANCH != "main" script: - - kubectl wait pod -l app.kubernetes.io\/name=df-wiki --for condition=Ready --timeout=600s --namespace ${NAMESPACE} + - kubectl wait pod -l "app.kubernetes.io/name=df-wiki" --for condition=Ready --timeout=600s --namespace ${NAMESPACE} - echo "Le pod est ready" @@ -481,8 +483,10 @@ load-website:dev: load-website:prod: image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION stage: load-website + variables: + NAMESPACE: "defense-finder-prod" rules: - if: $CI_COMMIT_BRANCH == "main" script: - - kubectl wait pod -l app.kubernetes.io\/name=df-wiki --for condition=Ready --timeout=600s --namespace ${NAMESPACE} + - kubectl wait pod -l "app.kubernetes.io/name=df-wiki" --for condition=Ready --timeout=600s --namespace ${NAMESPACE} - echo "Le pod est ready" \ No newline at end of file