diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6837869146205e415ed05c3f670bc8e8d88c641b..34b40d7bd93500647bb09ef9fd72b2e95b619cb2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -180,6 +180,22 @@ deploy-dev: on_stop: delete-dev-deployment +deploy-prod: + stage: deploy + needs: + - "test-pg" + extends: .deploy + only: + - release + variables: + NAMESPACE: "ippidb-prod" + PUBLIC_URL: "ippidb-internal.pasteur.cloud" + INGRESS_CLASS: "internal" + environment: + name: "k8sprod-02/ippidb-prod/${CI_COMMIT_REF_SLUG}" + url: "https://ippidb-internal.pasteur.cloud" + + delete-dev-deployment: stage: deploy needs: [] diff --git a/README.md b/README.md index a82ec09469acbed9c728583bfedf11c58fad2c0d..33d4490bc2ff1549a388ac4592c78f50f37ba02c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ ln -s ippisite/.flake8 .flake8 ## Copy data to helm container ```shell # the first time, create a context, safer and easier than specifying the namespace a each command -kubectl config set-context ippidb-dev --cluster=k8sdev-01 --user=$USER@k8sdev-01 --namespace ippidb-dev +export K8S_USER=$USER +kubectl config set-context ippidb-dev --cluster=k8sdev-01 --user=$K8S_USER@k8sdev-01 --namespace ippidb-dev +kubectl config set-context ippidb-prod --cluster=k8sprod-02 --user=$K8S_USER@k8sprod-02 --namespace ippidb-prod ``` ```shell