Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
GitLab CI Yml - Deprecated
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
GitLab CI Yml - Deprecated
Commits
6dffbec1
Commit
6dffbec1
authored
May 01, 2018
by
Mayra Cabrera
⚡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor production job to remove duplication
parent
a7e18757
Pipeline
#21360508
passed with stage
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
18 deletions
+6
-18
Auto-DevOps.gitlab-ci.yml
Auto-DevOps.gitlab-ci.yml
+6
-18
No files found.
Auto-DevOps.gitlab-ci.yml
View file @
6dffbec1
...
...
@@ -265,7 +265,7 @@ staging:
# or `canary` deploys, or you simply want more control over when you deploy
# to production, uncomment the `when: manual` line in the `production` job.
production
:
.production
:
&production_template
stage
:
production
script
:
-
check_kube_domain
...
...
@@ -282,6 +282,9 @@ production:
url
:
http://$CI_PROJECT_PATH_SLUG.$AUTO_DEVOPS_DOMAIN
artifacts
:
paths
:
[
environment_url.txt
]
production
:
<<
:
*production_template
only
:
refs
:
-
master
...
...
@@ -290,23 +293,8 @@ production:
variables
:
-
$STAGING_ENABLED
production_manual
:
stage
:
production
script
:
-
check_kube_domain
-
install_dependencies
-
download_chart
-
ensure_namespace
-
install_tiller
-
create_secret
-
deploy
-
delete canary
-
persist_environment_url
environment
:
name
:
production
url
:
http://$CI_PROJECT_PATH_SLUG.$AUTO_DEVOPS_DOMAIN
artifacts
:
paths
:
[
environment_url.txt
]
production_manual
:
<<
:
*production_template
when
:
manual
only
:
refs
:
...
...
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