Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards LEGACY VERSION
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
R3
howto-cards LEGACY VERSION
Commits
946f4fc6
Verified
Commit
946f4fc6
authored
4 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
remove old deployment section
parent
3a5a7c1c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!162
Regular merge of develop
,
!160
Remove old deployment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-62
14 additions, 62 deletions
.gitlab-ci.yml
with
14 additions
and
62 deletions
.gitlab-ci.yml
+
14
−
62
View file @
946f4fc6
...
...
@@ -3,66 +3,13 @@ image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.6
stages
:
-
build
-
generate
_index
-
generate
-
deploy
# !!!!!!! README !!!!!
# We are in the transition period - and the website is deployed two times - to gitlab pages and to a separate VM
# In order to migrate to a new deployment:
# 1) remove "Old deployment" section - build_pages, generate the search index and pages tasks
# 2) rename "new pages" to "pages" in the new deployment section, and "new_public" to "public"; you might also rename directories (skip "new" part)
# 3) remove ".ci/deploy.sh", ".ci/build_indices.sh"
# build
# ------------------------------------------------------------------------------------
# Old deployment =================================================================
build_pages
:
stage
:
build
before_script
:
-
apt-get -qq update
-
apt-get install -y -qq git-lfs
-
gem install bundler:2.0.2 && bundle install
script
:
-
bash .ci/deploy.sh
variables
:
JEKYLL_ENV
:
production
artifacts
:
expire_in
:
1 day
paths
:
-
build
generate the search index
:
stage
:
generate_index
image
:
node:13.8.0-slim
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
-
if
:
$CI_COMMIT_BRANCH == "develop"
script
:
-
bash .ci/build_indices.sh
-
mv build processed_build
artifacts
:
expire_in
:
1 day
paths
:
-
processed_build
pages
:
image
:
alpine:3.11.3
stage
:
deploy
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
-
if
:
$CI_COMMIT_BRANCH == "develop"
script
:
-
mv processed_build public
artifacts
:
expire_in
:
1 week
paths
:
-
public
# New deployment ==================================================================
build pages for VM deployment
:
build:pages
:
stage
:
build
variables
:
JEKYLL_ENV
:
production
...
...
@@ -92,9 +39,11 @@ build pages for VM deployment:
# Run Jekyll with custom configuration
-
bundle exec jekyll build -d new_build --config "_config.yml,.ci/_config_$CI_COMMIT_REF_NAME.yml"
# generate
# ------------------------------------------------------------------------------------
generate
the
search
i
ndex
for VM deployment
:
stage
:
generate
_index
generate
:
search
I
ndex
:
stage
:
generate
image
:
node:13.8.0-slim
variables
:
LUNR_VERSION
:
2.3.8
...
...
@@ -110,8 +59,11 @@ generate the search index for VM deployment:
paths
:
-
new_processed_build
# Deploy to Gitlab Pages - to be run only by forks; change to pages once it's ready
new pages
:
# deploy
# ------------------------------------------------------------------------------------
# Deploy to Gitlab Pages - to be run only by forks
pages
:
image
:
alpine:3.11.3
stage
:
deploy
rules
:
...
...
@@ -125,7 +77,7 @@ new pages:
-
new_public
## Deploys the website to a separate VM
deploy
to production
:
deploy
:vm
:
stage
:
deploy
image
:
alpine:3.1
before_script
:
...
...
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