Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3cb8f01b
Commit
3cb8f01b
authored
Dec 21, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Autodeploy script for OpenShift
parent
9809a9af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
2 deletions
+76
-2
spec/features/auto_deploy_spec.rb
spec/features/auto_deploy_spec.rb
+2
-2
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
+74
-0
No files found.
spec/features/auto_deploy_spec.rb
View file @
3cb8f01b
...
@@ -37,7 +37,7 @@ describe 'Auto deploy' do
...
@@ -37,7 +37,7 @@ describe 'Auto deploy' do
click_button
'Choose a GitLab CI Yaml template'
click_button
'Choose a GitLab CI Yaml template'
within
'.gitlab-ci-yml-selector'
do
within
'.gitlab-ci-yml-selector'
do
expect
(
page
).
to
have_content
(
'
Kubernetes
'
)
expect
(
page
).
to
have_content
(
'
OpenShift
'
)
end
end
end
end
...
@@ -45,7 +45,7 @@ describe 'Auto deploy' do
...
@@ -45,7 +45,7 @@ describe 'Auto deploy' do
click_link
'Set up autodeploy'
click_link
'Set up autodeploy'
click_button
'Choose a GitLab CI Yaml template'
click_button
'Choose a GitLab CI Yaml template'
within
'.gitlab-ci-yml-selector'
do
within
'.gitlab-ci-yml-selector'
do
click_on
'
Kubernetes
'
click_on
'
OpenShift
'
end
end
wait_for_ajax
wait_for_ajax
click_button
'Commit Changes'
click_button
'Commit Changes'
...
...
vendor/gitlab-ci-yml/autodeploy/OpenShift.gitlab-ci.yml
0 → 100644
View file @
3cb8f01b
image
:
registry.gitlab.com/gitlab-examples/openshift-deploy
variables
:
# Application deployment domain
KUBE_DOMAIN
:
domain.example.com
stages
:
-
build
-
test
-
review
-
staging
-
production
build
:
stage
:
build
script
:
-
command build
only
:
-
branches
production
:
stage
:
production
variables
:
CI_ENVIRONMENT_URL
:
http://production.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
production
url
:
http://production.$KUBE_DOMAIN
when
:
manual
only
:
-
master
staging
:
stage
:
staging
variables
:
CI_ENVIRONMENT_URL
:
http://staging.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
staging
url
:
http://staging.$KUBE_DOMAIN
only
:
-
master
review
:
stage
:
review
variables
:
CI_ENVIRONMENT_URL
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
script
:
-
command deploy
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
http://$CI_ENVIRONMENT_SLUG.$KUBE_DOMAIN
on_stop
:
stop_review
only
:
-
branches
except
:
-
master
stop_review
:
stage
:
review
variables
:
GIT_STRATEGY
:
none
script
:
-
command destroy
environment
:
name
:
review/$CI_BUILD_REF_NAME
action
:
stop
when
:
manual
only
:
-
branches
except
:
-
master
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