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

Merge branch 'dev' into system-distribution-plot

parents 049248df 6e535f35
No related branches found
No related tags found
1 merge request!231System distribution plot edit article
Pipeline #127349 waiting for manual action
......@@ -360,12 +360,13 @@ update-meilisearch-index:prod:
stage: get-meili-key
variables:
MEILI_HOST: "http://localhost:7700"
MEILI_HOST_NO_PROTOCOLE: "localhost:7700"
script:
- >
df-wiki-cli
meilisearch
--key "${MEILI_MASTER_KEY}"
--host ${MEILI_HOST}
--host "${MEILI_HOST}"
get-env-var
--output build.env
artifacts:
......@@ -378,6 +379,7 @@ set-meili-env:dev:
extends: .set-meili-env
variables:
MEILI_HOST: "https://${MEILI_HOST_DEV}"
MEILI_HOST_NO_PROTOCOLE: ${MEILI_HOST_DEV}
rules:
- if: $CI_COMMIT_BRANCH != "main"
......@@ -385,6 +387,8 @@ set-meili-env:prod:
extends: .set-meili-env
variables:
MEILI_HOST: "https://${MEILI_HOST_PROD}"
MEILI_HOST_NO_PROTOCOLE: ${MEILI_HOST_PROD}
rules:
- if: $CI_COMMIT_BRANCH == "main"
......@@ -416,7 +420,6 @@ sync-zotero:
- *docker-login
script:
- echo $MEILI_HOST
- echo $MEILI_API_KEY
- >
docker buildx build --pull -t "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
--build-arg "BASE_URL=$BASE_URL"
......@@ -450,7 +453,7 @@ build:prod:wiki:
# - get-pfam
variables:
BASE_URL: /wiki/
HOST_URL: https://${HOST_PROD}
HOST_URL: "https://${HOST_PROD}"
rules:
- if: $CI_COMMIT_BRANCH == "main"
......@@ -517,7 +520,7 @@ deploy:prod:
variables:
NODE_ENV: "production"
KUBE_NAMESPACE: "defense-finder-prod"
PUBLIC_URL: "${HOST_PROD}"
PUBLIC_URL: "https://${HOST_PROD}"
CI_DEBUG_TRACE: "false"
ENV: "production"
environment:
......@@ -601,7 +604,7 @@ create-structures-archives:prod:
variables:
NODE_ENV: "production"
KUBE_NAMESPACE: "defense-finder-prod"
PUBLIC_URL: "${HOST_PROD}"
PUBLIC_URL: "https://${HOST_PROD}"
CI_DEBUG_TRACE: "false"
ENV: "production"
environment:
......
......@@ -36,6 +36,7 @@ securityContext:
allowPrivilegeEscalation: false
runAsUser: 101
runAsGroup: 101
allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
......
......@@ -137,6 +137,7 @@ def get_env_var(
keys = client.get_keys()
api_key = [res.key for res in keys.results if res.name == "Default Search API Key"]
print(ctx.obj.host)
if len(api_key) == 1:
with open(output, "a") as outfile:
outfile.write(f"MEILI_HOST='{ctx.obj.host}'\n")
......
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