Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Marie Fossepre
howto-cards
Commits
128ba281
Verified
Commit
128ba281
authored
4 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
remove new_ from all variables
parent
21a2a6d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-8
8 additions, 8 deletions
.gitlab-ci.yml
with
8 additions
and
8 deletions
.gitlab-ci.yml
+
8
−
8
View file @
128ba281
...
...
@@ -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 {} +;"
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