Skip to content
Snippets Groups Projects
Commit abec5bc8 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

specific dev conf deploy to values.development.yaml

parent 6a4d807d
No related branches found
No related tags found
No related merge requests found
Pipeline #115197 passed with warnings
...@@ -109,6 +109,17 @@ build:dev: ...@@ -109,6 +109,17 @@ build:dev:
rules: rules:
- if: $CI_COMMIT_BRANCH != "main" - if: $CI_COMMIT_BRANCH != "main"
build:prod:
extends: .build
variables:
BASE_URL: /wiki/
MEILI_HOST: 'https://defense-finder-meilisearch.dev.pasteur.cloud'
MEILI_API_KEY: MASTER_KEY
rules:
- if: $CI_COMMIT_BRANCH == "main"
.deploy: .deploy:
stage: deploy stage: deploy
image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
...@@ -125,17 +136,15 @@ build:dev: ...@@ -125,17 +136,15 @@ build:dev:
--set registry.username=${DEPLOY_USER} --set registry.username=${DEPLOY_USER}
--set registry.password=${DEPLOY_TOKEN} --set registry.password=${DEPLOY_TOKEN}
--set registry.host=${CI_REGISTRY} --set registry.host=${CI_REGISTRY}
--set ingress.enabled="false"
--set ingress.hosts[0].host="${PUBLIC_URL}" --set ingress.hosts[0].host="${PUBLIC_URL}"
--set ingress.hosts[0].paths[0].path="/wiki" --set ingress.hosts[0].paths[0].path="/wiki"
--set ingress.hosts[0].paths[0].pathType="Prefix" --set ingress.hosts[0].paths[0].pathType="Prefix"
--set ingress.annotations."kubernetes\.io/ingress\.class"="$INGRESS_CLASS"
--set imagePullSecrets[0].name="registry-pull-secret-${CI_COMMIT_REF_SLUG}" --set imagePullSecrets[0].name="registry-pull-secret-${CI_COMMIT_REF_SLUG}"
--set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME" --set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME"
--set image.tag="$CI_COMMIT_SHORT_SHA" --set image.tag="$CI_COMMIT_SHORT_SHA"
--set image.pullPolicy='Always' --set env="${ENV:-development}"
--set strategy.type="${DEPLOY_STRATEGY}" --values values.yaml
--set env="$ENV" --values values.${ENV:-development}.yaml
deploy:dev: deploy:dev:
extends: .deploy extends: .deploy
...@@ -148,11 +157,6 @@ deploy:dev: ...@@ -148,11 +157,6 @@ deploy:dev:
NODE_ENV: "development" NODE_ENV: "development"
KUBE_NAMESPACE: "defense-finder-dev" KUBE_NAMESPACE: "defense-finder-dev"
PUBLIC_URL: "defense-finder.dev.pasteur.cloud" PUBLIC_URL: "defense-finder.dev.pasteur.cloud"
INGRESS_CLASS: "internal"
AUTOSCALE: "true"
AUTSCALING_MIN_REPLICAS: "1"
AUTSCALING_MAX_REPLICAS: "4"
DEPLOY_STRATEGY: "Recreate"
ENV: "development" ENV: "development"
environment: environment:
name: k8sdev-01 name: k8sdev-01
......
image:
pullPolicy: Always
ingress:
enabled: false
annotations:
- kubernetes.io/ingress.class: internal
hosts:
- host: chart-example.local
paths:
- path: /wiki
pathType: Prefix
strategy:
type: Recreate
\ No newline at end of file
ingress:
enabled: false
className: ""
annotations:
- kubernetes.io/ingress.class: internal
# nginx.ingress.kubernetes.io/rewrite-target: /$2
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /wiki
pathType: Prefix
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment