Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
as-is
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
as-is
Commits
aac677ff
Commit
aac677ff
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
e256d9b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
8 deletions
+88
-8
.gitlab-ci.yml
.gitlab-ci.yml
+86
-8
route-map.yml
.gitlab/route-map.yml
+2
-0
No files found.
.gitlab-ci.yml
View file @
aac677ff
variabl
es
:
stag
es
:
PROJECT_NAME
:
$CI_PROJECT_NAME
-
deploy
test
:
deploy:review
:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
rm -rf .git .gitignore .gitlab-ci.yml
-
rm -rf .git .gitignore .gitlab .gitlab-ci.yml
-
rsync -rv --delete ./ $GVIA_TEST_DIR/$PROJECT_NAME/
-
rsync -rv --delete ./ /test/$CI_PROJECT_NAME--$CI_BUILD_REF_SLUG/
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
deploy:testing
:
stage
:
deploy
script
:
-
rm -rf .git .gitignore .gitlab .gitlab-ci.yml
-
rsync -rv --delete dist/ /test/$CI_PROJECT_NAME/
tags
:
-
gviagroup-deploy
environment
:
name
:
testing
url
:
http://$CI_PROJECT_NAME.test.$DOMAIN
on_stop
:
undeploy:testing
only
:
only
:
-
dev
-
dev
demo
:
deploy:staging
:
stage
:
deploy
script
:
-
rm -rf .git .gitignore .gitlab .gitlab-ci.yml
-
rsync -rv --delete dist/ /demo/$CI_PROJECT_NAME/
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
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
script
:
-
rm -rf .git .gitignore .gitlab-ci.yml
-
rm -rf /demo/$CI_PROJECT_NAME
-
rsync -rv --delete ./ $GVIA_DEMO_DIR/$PROJECT_NAME/
when
:
manual
tags
:
-
gviagroup-deploy
environment
:
name
:
staging
action
:
stop
only
:
only
:
-
master
-
master
.gitlab/route-map.yml
0 → 100644
View file @
aac677ff
-
source
:
/^(((?!^\.git\/|^\.gitignore|^\.gitlab\/|^\.gitlab-ci\.yml).)*)$/
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