Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
427e4cde
Commit
427e4cde
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
ci for dev
parent
c044b822
No related branches found
No related tags found
1 merge request
!168
Multiple slider
Pipeline
#119132
failed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-3
31 additions, 3 deletions
.gitlab-ci.yml
with
31 additions
and
3 deletions
.gitlab-ci.yml
+
31
−
3
View file @
427e4cde
...
@@ -354,7 +354,26 @@ build:prod:wiki:
...
@@ -354,7 +354,26 @@ build:prod:wiki:
-
if
:
$CI_COMMIT_BRANCH == "main"
-
if
:
$CI_COMMIT_BRANCH == "main"
build-wiki:dev
:
stage
:
build-wiki
needs
:
-
set-meili-env:dev
-
get-zotero
image
:
node:21.1-bookworm-slim
variables
:
NODE_OPTIONS
:
--max_old_space_size=12288
NUXT_APP_BASE_URL
:
/wiki/
NUXT_PUBLIC_MEILISEARCH_CLIENT_HOST_URL
:
${MEILI_HOST}
NUXT_PUBLIC_MEILISEARCH_CLIENT_SEARCH_API_KEY
:
${MEILI_API_KEY}
NUXT_PUBLIC_MEILI_HOST
:
${MEILI_HOST}
NUXT_PUBLIC_MEILI_API_KEY
:
${MEILI_API_KEY}
before_script
:
-
npm install
script
:
-
npm run generate
artifacts
:
paths
:
-
.output/public
build-wiki:prod
:
build-wiki:prod
:
stage
:
build-wiki
stage
:
build-wiki
...
@@ -381,6 +400,9 @@ build-wiki:prod:
...
@@ -381,6 +400,9 @@ build-wiki:prod:
load-website:dev
:
load-website:dev
:
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
stage
:
load-website
stage
:
load-website
needs
:
-
build-wiki:dev
-
deploy:dev
variables
:
variables
:
NAMESPACE
:
"
defense-finder-dev"
NAMESPACE
:
"
defense-finder-dev"
environment
:
environment
:
...
@@ -388,9 +410,13 @@ load-website:dev:
...
@@ -388,9 +410,13 @@ load-website:dev:
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
-
if
:
$CI_COMMIT_BRANCH != "main"
script
:
script
:
-
kubectl wait pod -l "app.kubernetes.io/name=df-wiki" --for condition=Ready --timeout=600s
--namespace ${NAMESPACE}
-
kubectl
--namespace ${NAMESPACE}
wait pod -l "app.kubernetes.io/name=df-wiki" --for condition=Ready --timeout=600s
-
echo "Le pod est ready"
-
echo "Le pod est ready"
-
WIKI_POD=$(kubectl --namespace ${NAMESPACE} get pods -l "app.kubernetes.io/name=df-wiki" --output jsonpath='{.items[0].metadata.name}')
-
kubectl --namespace ${NAMESPACE} cp .output/public/ ${WIKI_POD}:/website
-
|
kubectl --namespace ${NAMESPACE}
exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && find * -type d -exec sh -c "for d in "$@"; do (cd "/usr/share/nginx/html/$d"; cp --archive --recursive --symbolic-link /structure-data/sanitized-dump/$d/* .) done" argv0 {} +'
load-website:prod
:
load-website:prod
:
...
@@ -415,6 +441,8 @@ load-website:prod:
...
@@ -415,6 +441,8 @@ load-website:prod:
exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && find * -type d -exec sh -c "for d in "$@"; do (cd "/usr/share/nginx/html/$d"; cp --archive --recursive --symbolic-link /structure-data/sanitized-dump/$d/* .) done" argv0 {} +'
exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && find * -type d -exec sh -c "for d in "$@"; do (cd "/usr/share/nginx/html/$d"; cp --archive --recursive --symbolic-link /structure-data/sanitized-dump/$d/* .) done" argv0 {} +'
################ DEPLOY ##########################
################ DEPLOY ##########################
.deploy
:
.deploy
:
stage
:
deploy
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment