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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
91bb11ae
Commit
91bb11ae
authored
May 11, 2018
by
Fabio Busatto
Committed by
Kamil Trzciński
May 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vendor Auto DevOps template
parent
cfba59ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
36 deletions
+18
-36
vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
+18
-36
No files found.
vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
View file @
91bb11ae
...
@@ -12,8 +12,10 @@
...
@@ -12,8 +12,10 @@
# AUTO_DEVOPS_DOMAIN must also be set as a variable at the group or project
# AUTO_DEVOPS_DOMAIN must also be set as a variable at the group or project
# level, or manually added below.
# level, or manually added below.
#
#
# If you want to deploy to staging first, or enable canary deploys,
# Continuous deployment to production is enabled by default.
# uncomment the relevant jobs in the pipeline below.
# 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 Auto DevOps fails to detect the proper buildpack, or if you want to
# 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
# specify a custom buildpack, set a project variable `BUILDPACK_URL` to the
...
@@ -88,14 +90,6 @@ codequality:
...
@@ -88,14 +90,6 @@ codequality:
artifacts
:
artifacts
:
paths
:
[
codeclimate.json
]
paths
:
[
codeclimate.json
]
license_management
:
image
:
registry.gitlab.com/gitlab-org/security-products/license-management:latest
allow_failure
:
true
script
:
-
license_management
artifacts
:
paths
:
[
gl-license-report.json
]
performance
:
performance
:
stage
:
performance
stage
:
performance
image
:
docker:stable
image
:
docker:stable
...
@@ -223,8 +217,8 @@ stop_review:
...
@@ -223,8 +217,8 @@ stop_review:
# Staging deploys are disabled by default since
# Staging deploys are disabled by default since
# continuous deployment to production is enabled by default
# continuous deployment to production is enabled by default
# If you prefer to automatically deploy to staging and
# If you prefer to automatically deploy to staging and
# only manually promote to production, enable this job by
removing the dot (.),
# only manually promote to production, enable this job by
setting
#
and uncomment the `when: manual` line in the `production` job
.
#
STAGING_ENABLED
.
staging
:
staging
:
stage
:
staging
stage
:
staging
...
@@ -245,13 +239,9 @@ staging:
...
@@ -245,13 +239,9 @@ staging:
kubernetes
:
active
kubernetes
:
active
variables
:
variables
:
-
$STAGING_ENABLED
-
$STAGING_ENABLED
except
:
variables
:
-
$INCREMENTAL_ROLLOUT_ENABLED
# Canaries are disabled by default, but if you want them,
# Canaries are disabled by default, but if you want them,
# and know what the downsides are, enable this job by removing the dot (.),
# and know what the downsides are, enable this job by removing the dot (.).
# and uncomment the `when: manual` line in the `production` job.
.canary
:
.canary
:
stage
:
canary
stage
:
canary
...
@@ -272,11 +262,6 @@ staging:
...
@@ -272,11 +262,6 @@ staging:
-
master
-
master
kubernetes
:
active
kubernetes
:
active
# This job continuously deploys to production on every push to `master`.
# To make this a manual process, either because you're enabling `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_template
.production
:
&production_template
stage
:
production
stage
:
production
script
:
script
:
...
@@ -310,6 +295,7 @@ production:
...
@@ -310,6 +295,7 @@ production:
production_manual
:
production_manual
:
<<
:
*production_template
<<
:
*production_template
when
:
manual
when
:
manual
allow_failure
:
false
only
:
only
:
refs
:
refs
:
-
master
-
master
...
@@ -345,6 +331,7 @@ rollout 10%:
...
@@ -345,6 +331,7 @@ rollout 10%:
<<
:
*rollout_template
<<
:
*rollout_template
variables
:
variables
:
ROLLOUT_PERCENTAGE
:
10
ROLLOUT_PERCENTAGE
:
10
when
:
manual
only
:
only
:
refs
:
refs
:
-
master
-
master
...
@@ -379,6 +366,7 @@ rollout 50%:
...
@@ -379,6 +366,7 @@ rollout 50%:
rollout 100%
:
rollout 100%
:
<<
:
*production_template
<<
:
*production_template
when
:
manual
when
:
manual
allow_failure
:
false
only
:
only
:
refs
:
refs
:
-
master
-
master
...
@@ -428,14 +416,6 @@ rollout 100%:
...
@@ -428,14 +416,6 @@ rollout 100%:
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
}
}
function license_management() {
if echo $GITLAB_FEATURES |grep license_management > /dev/null ; then
/run.sh .
else
echo "License management is not available in your subscription"
fi
}
function sast() {
function sast() {
case "$CI_SERVER_VERSION" in
case "$CI_SERVER_VERSION" in
*-ee)
*-ee)
...
@@ -562,12 +542,14 @@ rollout 100%:
...
@@ -562,12 +542,14 @@ rollout 100%:
replicas=$(get_replicas "$track" "$percentage")
replicas=$(get_replicas "$track" "$percentage")
if [[ -n "$(helm ls -q "^$name$")" ]]; then
helm upgrade --reuse-values \
helm upgrade --reuse-values \
--wait \
--wait \
--set replicaCount="$replicas" \
--set replicaCount="$replicas" \
--namespace="$KUBE_NAMESPACE" \
--namespace="$KUBE_NAMESPACE" \
"$name" \
"$name" \
chart/
chart/
fi
}
}
function install_dependencies() {
function install_dependencies() {
...
...
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