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
06f3e462
Verified
Commit
06f3e462
authored
6 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Plain Diff
Merge branch 'change-deploy-model' into develop
parents
a2791e6a
9133dfb7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.autoRedirect
+8
-0
8 additions, 0 deletions
.autoRedirect
.gitlab-ci.yml
+27
-4
27 additions, 4 deletions
.gitlab-ci.yml
with
35 additions
and
4 deletions
.autoRedirect
0 → 100644
+
8
−
0
View file @
06f3e462
<html>
<head>
<meta
http-equiv=
"refresh"
content=
"0; url=https://r3.pages.uni.lu/R3LabCards/stable"
/>
</head>
<body>
</bod>
</html>
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
27
−
4
View file @
06f3e462
...
...
@@ -18,10 +18,33 @@ test:
pages
:
stage
:
deploy
only
:
-
develop
-
master
script
:
-
bundle exec jekyll build -d public
# build the master version into stable
-
git fetch --tags
-
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
-
git checkout $latestTag
-
bundle exec jekyll build -d public
-
mkdir stable
-
mv public/* stable/.
# build the develop version into latest
-
git checkout -f develop
-
git fetch origin develop
-
git reset --hard origin/develop
-
bundle exec jekyll build -d public
-
mkdir latest
-
mv public/* latest/.
# deploy the stable and latest directories
-
mv stable public/.
-
mv latest public/.
# auto redirect file
-
cp .autoRedirect public/index.html
artifacts
:
paths
:
-
public
only
:
-
master
-
public
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Laurent Heirendt
@laurent.heirendt
mentioned in commit
bfbb195a
·
5 years ago
mentioned in commit
bfbb195a
mentioned in commit bfbb195a6b4401430f8b2975ae15ed29a50e02ff
Toggle commit list
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