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

add script to deploy prod

parent e54f1479
No related branches found
No related tags found
No related merge requests found
......@@ -100,24 +100,15 @@ format-pfam:
rules:
- if: $CI_COMMIT_BRANCH == "main"
build:dev:
build:wiki:
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"
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:
......@@ -145,10 +136,10 @@ build:prod:
deploy:dev:
extends: .deploy
# rules:
# - if: $CI_COMMIT_BRANCH == "dev"
rules:
- if: $CI_COMMIT_BRANCH != "main"
needs:
- "build:dev"
- "build:wiki"
when: manual
variables:
NODE_ENV: "development"
......@@ -160,6 +151,24 @@ deploy:dev:
name: k8sdev-01
url: "https://defense-finder.dev.pasteur.cloud"
deploy:prod:
extends: .deploy
rules:
- if: $CI_COMMIT_BRANCH == "main"
needs:
- "build:wiki"
when: manual
variables:
NODE_ENV: "production"
KUBE_NAMESPACE: "defense-finder-prod"
PUBLIC_URL: "defense-finder.pasteur.cloud"
CI_DEBUG_TRACE: "false"
ENV: "production"
environment:
name: k8sprod-02
url: "https://defense-finder.pasteur.cloud"
delete-helm-release:
except:
- master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment