Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
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
Container Registry
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
Show more breadcrumbs
R3
school
courses
Merge requests
!29
Regular merge of develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Regular merge of develop
develop
into
master
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Laurent Heirendt
requested to merge
develop
into
master
6 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a6f61b35
2 commits,
6 years ago
1 file
+
20
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
20
−
17
Options
image
:
digitallyseamless/nodejs-bower-grunt
pages
:
stage
:
build
only
:
-
develop
script
:
-
npm install -g npm@latest yo grunt-cli generator-reveal bower
-
npm install
-
grunt dist
-
mkdir latest
-
mv public/* latest/.
-
mv latest public/.
-
cp .autoRedirect public/index.html
artifacts
:
paths
:
-
public/latest
stage
:
deploy
only
:
-
develop
-
master
script
:
# install npm
-
npm install -g npm@latest yo grunt-cli generator-reveal bower
-
npm install
# build the master version into stable
-
git fetch --tags
-
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
-
git checkout $latestTag
-
grunt dist
-
mkdir stable
-
mv public/* stable/.
# build the develop version into latest
-
git checkout develop
-
git pull origin develop
-
grunt dist
-
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
/stable
-
public
Loading