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
0d90cfac
Verified
Commit
0d90cfac
authored
May 15, 2018
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Auto-DevOps jobs configurable with environment variables
parent
92d0b7e9
Pipeline
#22254964
passed with stage
in 1 minute and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
7 deletions
+49
-7
Auto-DevOps.gitlab-ci.yml
Auto-DevOps.gitlab-ci.yml
+49
-7
No files found.
Auto-DevOps.gitlab-ci.yml
View file @
0d90cfac
...
...
@@ -7,6 +7,17 @@
# * creating a review app for each topic branch,
# * and continuous deployment to production
#
# Test jobs may be disabled by setting environment variables:
# * test: TEST_DISABLED
# * codequality: CODEQUALITY_DISABLED
# * performance: PERFORMANCE_DISABLED
# * sast: SAST_DISABLED
# * dependency_scanning: DEPENDENCY_SCANNING_DISABLED
# * sast:container: CONTAINER_SCANNING_DISABLED
# * dast: DAST_DISABLED
# * review: REVIEW_DISABLED
# * stop_review: REVIEW_DISABLED
#
# In order to deploy, you must have a Kubernetes cluster configured either
# via a project integration, or via group/project variables.
# AUTO_DEVOPS_DOMAIN must also be set as a variable at the group or project
...
...
@@ -15,7 +26,7 @@
# Continuous deployment to production is enabled by default.
# If you want to deploy to staging first, or enable incremental rollouts,
# set STAGING_ENABLED or INCREMENTAL_ROLLOUT_ENABLED environment variables.
# If you want to use canary deployments,
uncomment the canary job
.
# If you want to use canary deployments,
set CANARY_ENABLED environment variable
.
#
# If Auto DevOps fails to detect the proper buildpack, or if you want to
# specify a custom buildpack, set a project variable `BUILDPACK_URL` to the
...
...
@@ -76,6 +87,9 @@ test:
-
/bin/herokuish buildpack test
only
:
-
branches
except
:
variables
:
-
$TEST_DISABLED
codequality
:
image
:
docker:stable
...
...
@@ -89,6 +103,9 @@ codequality:
-
codeclimate
artifacts
:
paths
:
[
codeclimate.json
]
except
:
variables
:
-
$CODEQUALITY_DISABLED
performance
:
stage
:
performance
...
...
@@ -109,6 +126,9 @@ performance:
refs
:
-
branches
kubernetes
:
active
except
:
variables
:
-
$PERFORMANCE_DISABLED
sast
:
image
:
docker:stable
...
...
@@ -122,6 +142,9 @@ sast:
-
sast
artifacts
:
paths
:
[
gl-sast-report.json
]
except
:
variables
:
-
$SAST_DISABLED
dependency_scanning
:
image
:
docker:stable
...
...
@@ -135,6 +158,9 @@ dependency_scanning:
-
dependency_scanning
artifacts
:
paths
:
[
gl-dependency-scanning-report.json
]
except
:
variables
:
-
$DEPENDENCY_SCANNING_DISABLED
sast:container:
image
:
docker:stable
...
...
@@ -148,6 +174,9 @@ sast:container:
-
sast_container
artifacts
:
paths
:
[
gl-sast-container-report.json
]
except
:
variables
:
-
$CONTAINER_SCANNING_DISABLED
dast
:
stage
:
dast
...
...
@@ -164,7 +193,10 @@ dast:
-
branches
kubernetes
:
active
except
:
-
master
refs
:
-
master
variables
:
-
$DAST_DISABLED
review
:
stage
:
review
...
...
@@ -188,7 +220,10 @@ review:
-
branches
kubernetes
:
active
except
:
-
master
refs
:
-
master
variables
:
-
$REVIEW_DISABLED
stop_review
:
stage
:
cleanup
...
...
@@ -207,7 +242,10 @@ stop_review:
-
branches
kubernetes
:
active
except
:
-
master
refs
:
-
master
variables
:
-
$REVIEW_DISABLED
# Keys that start with a dot (.) will not be processed by GitLab CI.
# Staging and canary jobs are disabled by default, to enable them
...
...
@@ -240,10 +278,11 @@ staging:
variables
:
-
$STAGING_ENABLED
# Canaries are disabled by default, but if you want them,
# and know what the downsides are, enable this job by removing the dot (.).
# Canaries are also disabled by default, but if you want them,
# and know what the downsides are, you can enable this by setting
# CANARY_ENABLED.
.
canary
:
canary
:
stage
:
canary
script
:
-
check_kube_domain
...
...
@@ -261,6 +300,8 @@ staging:
refs
:
-
master
kubernetes
:
active
variables
:
-
$CANARY_ENABLED
.production
:
&production_template
stage
:
production
...
...
@@ -290,6 +331,7 @@ production:
except
:
variables
:
-
$STAGING_ENABLED
-
$CANARY_ENABLED
-
$INCREMENTAL_ROLLOUT_ENABLED
production_manual
:
...
...
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