From d5b131b7df0ffab0f1324bbb875a1e82fbc37e1f Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Mon, 12 Feb 2024 18:42:56 +0100 Subject: [PATCH] update ci for prod --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index acd89d16..074ec204 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -490,6 +490,8 @@ delete-helm-release:prod: post-deploy:dev: extends: .post-deploy + rules: + - if: $CI_COMMIT_BRANCH != "main" needs: - "deploy:dev" variables: @@ -501,3 +503,20 @@ post-deploy:dev: environment: name: k8sdev-01 url: "https://${HOST_DEV}" + + +post-deploy:prod: + extends: .post-deploy + rules: + - if: $CI_COMMIT_BRANCH == "main" + needs: + - "deploy:prod" + variables: + NODE_ENV: "production" + KUBE_NAMESPACE: "defense-finder-prod" + PUBLIC_URL: "${HOST_PROD}" + CI_DEBUG_TRACE: "false" + ENV: "production" + environment: + name: k8sprod-02 + url: "https://${HOST_PROD}" -- GitLab