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
1bae3c76
Commit
1bae3c76
authored
5 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
move commands to .ci folder
parent
e5e8269e
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
.ci/deploy.sh
+28
-0
28 additions, 0 deletions
.ci/deploy.sh
.gitlab-ci.yml
+1
-25
1 addition, 25 deletions
.gitlab-ci.yml
with
29 additions
and
25 deletions
.ci/deploy.sh
0 → 100644
+
28
−
0
View file @
1bae3c76
#!/bin/bash
# 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
-f
develop
git fetch origin develop
git reset
--hard
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
.ci/.autoRedirect public/index.html
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
25
View file @
1bae3c76
...
@@ -7,31 +7,7 @@ pages:
...
@@ -7,31 +7,7 @@ pages:
-
master
-
master
script
:
script
:
# install npm
# install npm
-
npm install -g npm@latest yo grunt-cli generator-reveal bower
-
bash .ci/deploy.sh
-
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 -f develop
-
git fetch origin develop
-
git reset --hard 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
:
artifacts
:
paths
:
paths
:
...
...
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