Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Verified Commit 128ba281 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

remove new_ from all variables

parent 21a2a6d5
......@@ -17,7 +17,7 @@ build:pages:
artifacts:
expire_in: 1 day
paths:
- new_build
- build
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_MERGE_REQUEST_ID
......@@ -37,7 +37,7 @@ build:pages:
- 'echo "Configuration: " && cat ".ci/_config_$CI_COMMIT_REF_NAME.yml"'
# Run Jekyll with custom configuration
- bundle exec jekyll build -d new_build --config "_config.yml,.ci/_config_$CI_COMMIT_REF_NAME.yml"
- bundle exec jekyll build -d build --config "_config.yml,.ci/_config_$CI_COMMIT_REF_NAME.yml"
# generate
# ------------------------------------------------------------------------------------
......@@ -47,17 +47,17 @@ generate:searchIndex:
image: node:13.8.0-slim
variables:
LUNR_VERSION: 2.3.8
DIRECTORY: new_build
DIRECTORY: build
script:
- bash .ci/build_indices_new.sh
- mv new_build new_processed_build
- mv build processed_build
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_MERGE_REQUEST_ID
artifacts:
expire_in: 1 day
paths:
- new_processed_build
- processed_build
# deploy
# ------------------------------------------------------------------------------------
......@@ -70,11 +70,11 @@ pages:
- if: '$CI_PROJECT_NAMESPACE != "R3" && $CI_PROJECT_NAMESPACE != "R3-core"'
- if: $CI_MERGE_REQUEST_ID
script:
- mv new_processed_build new_public
- mv processed_build public
artifacts:
expire_in: 1 week
paths:
- new_public
- public
## Deploys the website to a separate VM
deploy:vm:
......@@ -93,6 +93,6 @@ deploy:vm:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "R3/howto-cards"'
script:
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/$CI_COMMIT_BRANCH/sources/public/$CI_JOB_ID ~/$CI_COMMIT_BRANCH/public"
- scp -P $SSHPORT -r new_processed_build/* $SSHCONNECT:~/$CI_COMMIT_BRANCH/sources/public/$CI_JOB_ID
- scp -P $SSHPORT -r processed_build/* $SSHCONNECT:~/$CI_COMMIT_BRANCH/sources/public/$CI_JOB_ID
- ssh -p $SSHPORT $SSHCONNECT "cd ~/$CI_COMMIT_BRANCH/public && ln -fs ../sources/public/$CI_JOB_ID/* . && cd ~/$CI_COMMIT_BRANCH/sources/public/ && find . -type d -not -newermt '-1 minutes' -exec rm -rf {} +;"
Markdown is supported
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