Commit d9753422 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

split deploy in two steps

parent d0cef5d0
......@@ -136,11 +136,10 @@ dump_prod_for_dev:
deploy_dev:
.deploy_dev:
except:
- master
stage: deploy
needs: ["build", "dump_prod_for_dev"]
image: harbor.pasteur.fr/kube-system/helm-kubectl:3.4.0
variables:
CI_DEBUG_TRACE: "false"
......@@ -154,6 +153,12 @@ deploy_dev:
name: "k8sdev-01/viralhostrange-dev/$CI_COMMIT_REF_SLUG"
url: "https://viralhostrangedb-${CI_COMMIT_REF_SLUG}.dev.pasteur.cloud"
on_stop: stop_and_delete_in_dev
deploy_dev_db:
extends: .deploy_dev
needs: ["build", "dump_prod_for_dev"]
script:
- helm repo add bitnami https://charts.bitnami.com/bitnami
- helm repo update
......@@ -181,6 +186,13 @@ deploy_dev:
--set primary.podLabels.app=postgres-app
--set fullnameOverride="db${STORAGE_SUFFIX}"
- . ./k8s/init_db_from_prod.sh
deploy_dev_web:
extends: .deploy_dev
needs: ["deploy_dev_db", ]
script:
- envsubst < k8s/kubernetes-storage.yaml | kubectl apply -n $NAMESPACE -f -
- envsubst < k8s/manifest.yaml | kubectl apply -n $NAMESPACE -f -
# - envsubst < k8s/manifest-webhost-autoscale.yaml | kubectl apply -n $NAMESPACE -f -
......
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