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
Commits
00ed6c9b
Commit
00ed6c9b
authored
6 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
new strategy to deploy
parent
9744ab17
No related branches found
No related tags found
1 merge request
!29
Regular merge of develop
Pipeline
#8420
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-17
19 additions, 17 deletions
.gitlab-ci.yml
with
19 additions
and
17 deletions
.gitlab-ci.yml
+
19
−
17
View file @
00ed6c9b
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 checkout master
-
git pull origin master
-
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
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