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

set meili master key as variable

parent 6be67fd9
No related branches found
No related tags found
No related merge requests found
Pipeline #115280 passed with stages
in 7 minutes and 55 seconds
......@@ -105,7 +105,7 @@ build:dev:wiki:
variables:
BASE_URL: /wiki/
MEILI_HOST: 'https://defense-finder-meilisearch.dev.pasteur.cloud'
MEILI_API_KEY: MASTER_KEY
MEILI_API_KEY: "${MEILI_MASTER_KEY}"
rules:
- if: $CI_COMMIT_BRANCH != "main"
......@@ -115,7 +115,7 @@ build:prod:wiki:
variables:
BASE_URL: /wiki/
MEILI_HOST: 'https://defense-finder-meilisearch.pasteur.cloud'
MEILI_API_KEY: MASTER_KEY
MEILI_API_KEY: "${MEILI_MASTER_KEY}"
rules:
- if: $CI_COMMIT_BRANCH == "main"
......@@ -127,7 +127,6 @@ build:prod:wiki:
variables:
CI_DEBUG_TRACE: "false"
TEAM_ID: "df"
script:
- helm dependency update deploy/df-wiki/
- >
......@@ -140,6 +139,8 @@ build:prod:wiki:
--set imagePullSecrets[0].name="registry-pull-secret-${CI_COMMIT_REF_SLUG}"
--set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME"
--set image.tag="$CI_COMMIT_SHORT_SHA"
--set meilisearch.environment.MEILI_MASTER_KEY="${MEILI_MASTER_KEY}"
--set meilisearch.environment.MEILI_ENV="${ENV}"
--set env="${ENV:-development}"
--values deploy/df-wiki/values.yaml
--values deploy/df-wiki/values.${ENV:-development}.yaml
......@@ -175,6 +176,7 @@ deploy:prod:
PUBLIC_URL: "defense-finder.pasteur.cloud"
CI_DEBUG_TRACE: "false"
ENV: "production"
environment:
name: k8sprod-02
url: "https://defense-finder.pasteur.cloud"
......
......@@ -46,7 +46,7 @@ meilisearch:
resources:
limits:
cpu: 1500m
memory: 2Gi
memory: "1.5Gi"
requests:
cpu: 1000m
memory: 1Gi
\ No newline at end of file
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