Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-06-02 00:47:38 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-06-02 00:58:39 +0300
commit39412d0a163625bd91632267a1dd36c1ebb23906 (patch)
treef4c063a0f54fdc777965d326f89b6f1c51aa172d /app/models/project_auto_devops.rb
parent5e9687a198f205131d8e65c747f6b4ac2ae092f1 (diff)
Add deploy strategy related predefined variables
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r--app/models/project_auto_devops.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb
index 8464b1d9157..d5e00f84cf7 100644
--- a/app/models/project_auto_devops.rb
+++ b/app/models/project_auto_devops.rb
@@ -25,6 +25,11 @@ class ProjectAutoDevops < ActiveRecord::Base
variables.append(key: 'AUTO_DEVOPS_DOMAIN',
value: domain.presence || instance_domain)
end
+
+ if continuous?
+ variables.append(key: 'STAGING_ENABLED', value: 1)
+ variables.append(key: 'INCREMENTAL_ROLLOUT_ENABLED', value: 1)
+ end
end
end
end