Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
npm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
project-templates
web
npm
Commits
72c1549e
Commit
72c1549e
authored
Apr 22, 2017
by
Vadym Gidulian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support of GitLab Environments and Route Map
parent
29790d13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
10 deletions
+116
-10
.gitlab-ci.yml
.gitlab-ci.yml
+106
-10
route-map.yml
.gitlab/route-map.yml
+10
-0
No files found.
.gitlab-ci.yml
View file @
72c1549e
variables
:
PROJECT_NAME
:
$CI_PROJECT_NAME
stages
:
-
build
-
deploy
test
:
stage
:
deploy
build
:
stage
:
build
script
:
-
node -v
-
npm -v
-
npm run build
-
rsync -rv --delete dist/ $GVIA_TEST_DIR/$PROJECT_NAME/
tags
:
-
npm
artifacts
:
paths
:
-
dist/
deploy:review
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
rsync -rv --delete dist/ /test/$CI_PROJECT_NAME--$CI_BUILD_REF_SLUG/
dependencies
:
-
build
tags
:
-
gviagroup-deploy
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
http://$CI_BUILD_REF_SLUG.$CI_PROJECT_NAME.test.$DOMAIN
on_stop
:
undeploy:review
only
:
-
branches
except
:
-
master
-
dev
demo
:
deploy:testing
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
node -v
-
npm -v
-
npm run build
-
rsync -rv --delete dist/ $GVIA_DEMO_DIR/$PROJECT_NAME/
-
rsync -rv --delete dist/ /test/$CI_PROJECT_NAME/
dependencies
:
-
build
tags
:
-
gviagroup-deploy
environment
:
name
:
testing
url
:
http://$CI_PROJECT_NAME.test.$DOMAIN
on_stop
:
undeploy:testing
only
:
-
dev
deploy:staging
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
rsync -rv --delete dist/ /demo/$CI_PROJECT_NAME/
dependencies
:
-
build
tags
:
-
gviagroup-deploy
environment
:
name
:
staging
url
:
http://$CI_PROJECT_NAME.demo.$DOMAIN
on_stop
:
undeploy:staging
only
:
-
master
undeploy:review
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
rm -rf /test/$CI_PROJECT_NAME--$CI_BUILD_REF_SLUG
when
:
manual
tags
:
-
gviagroup-deploy
environment
:
name
:
review/$CI_BUILD_REF_NAME
action
:
stop
only
:
-
branches
except
:
-
master
-
dev
undeploy:testing
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
rm -rf /test/$CI_PROJECT_NAME
when
:
manual
tags
:
-
gviagroup-deploy
environment
:
name
:
testing
action
:
stop
only
:
-
dev
undeploy:staging
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
rm -rf /demo/$CI_PROJECT_NAME
when
:
manual
tags
:
-
gviagroup-deploy
environment
:
name
:
staging
action
:
stop
only
:
-
master
.gitlab/route-map.yml
0 → 100644
View file @
72c1549e
-
source
:
/src\/(css|less)\/.+/
public
:
'
css/style.all.min.css'
-
source
:
/src\/img\/(.+)/
public
:
'
img/\1'
-
source
:
/src\/js\/.+/
public
:
'
js/script.all.min.js'
-
source
:
/src\/pug\/(?!includes\/)(.+)\.pug/
public
:
'
\1.html'
-
source
:
/src\/(.+\.html)/
public
:
'
\1'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment