Commit 138409a0 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

deploy release branch into production k8s

parent 6e6e66dd
Pipeline #83459 skipped
......@@ -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: []
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment