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

remove protocole

parent 9dc203d1
No related branches found
No related tags found
No related merge requests found
Pipeline #127341 failed with stages
in 2 minutes and 22 seconds
...@@ -360,12 +360,13 @@ update-meilisearch-index:prod: ...@@ -360,12 +360,13 @@ update-meilisearch-index:prod:
stage: get-meili-key stage: get-meili-key
variables: variables:
MEILI_HOST: "http://localhost:7700" MEILI_HOST: "http://localhost:7700"
MEILI_HOST_NO_PROTOCOLE: "localhost:7700"
script: script:
- > - >
df-wiki-cli df-wiki-cli
meilisearch meilisearch
--key "${MEILI_MASTER_KEY}" --key "${MEILI_MASTER_KEY}"
--host ${MEILI_HOST} --host ${MEILI_HOST_NO_PROTOCOLE}
get-env-var get-env-var
--output build.env --output build.env
artifacts: artifacts:
...@@ -378,6 +379,7 @@ set-meili-env:dev: ...@@ -378,6 +379,7 @@ set-meili-env:dev:
extends: .set-meili-env extends: .set-meili-env
variables: variables:
MEILI_HOST: "https://${MEILI_HOST_DEV}" MEILI_HOST: "https://${MEILI_HOST_DEV}"
MEILI_HOST_NO_PROTOCOLE: ${MEILI_HOST_DEV}
rules: rules:
- if: $CI_COMMIT_BRANCH != "main" - if: $CI_COMMIT_BRANCH != "main"
...@@ -385,6 +387,8 @@ set-meili-env:prod: ...@@ -385,6 +387,8 @@ set-meili-env:prod:
extends: .set-meili-env extends: .set-meili-env
variables: variables:
MEILI_HOST: "https://${MEILI_HOST_PROD}" MEILI_HOST: "https://${MEILI_HOST_PROD}"
MEILI_HOST_NO_PROTOCOLE: ${MEILI_HOST_PROD}
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"
......
...@@ -141,5 +141,5 @@ def get_env_var( ...@@ -141,5 +141,5 @@ def get_env_var(
if len(api_key) == 1: if len(api_key) == 1:
with open(output, "a") as outfile: with open(output, "a") as outfile:
print(ctx.obj.host) print(ctx.obj.host)
outfile.write(f"MEILI_HOST='{ctx.obj.host}'\n") outfile.write(f"MEILI_HOST={ctx.obj.host}\n")
outfile.write(f"MEILI_API_KEY='{api_key[0]}'\n") outfile.write(f"MEILI_API_KEY='{api_key[0]}'\n")
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