Commit 78ae2304 authored by Matija Čupić's avatar Matija Čupić

Reverse logic of manual and continuous deploy strategies

parent 9738b0a4
...@@ -26,7 +26,7 @@ class ProjectAutoDevops < ActiveRecord::Base ...@@ -26,7 +26,7 @@ class ProjectAutoDevops < ActiveRecord::Base
value: domain.presence || instance_domain) value: domain.presence || instance_domain)
end end
if continuous? if manual?
variables.append(key: 'STAGING_ENABLED', value: 1) variables.append(key: 'STAGING_ENABLED', value: 1)
variables.append(key: 'INCREMENTAL_ROLLOUT_ENABLED', value: 1) variables.append(key: 'INCREMENTAL_ROLLOUT_ENABLED', value: 1)
end end
......
...@@ -69,11 +69,11 @@ describe ProjectAutoDevops do ...@@ -69,11 +69,11 @@ describe ProjectAutoDevops do
end end
end end
context 'when deploy_strategy is continuous' do context 'when deploy_strategy is manual' do
let(:domain) { 'example.com' } let(:domain) { 'example.com' }
before do before do
auto_devops.deploy_strategy = 'continuous' auto_devops.deploy_strategy = 'manual'
end end
it do it do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment