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
value: domain.presence || instance_domain)
end
if continuous?
if manual?
variables.append(key: 'STAGING_ENABLED', value: 1)
variables.append(key: 'INCREMENTAL_ROLLOUT_ENABLED', value: 1)
end
......
......@@ -69,11 +69,11 @@ describe ProjectAutoDevops do
end
end
context 'when deploy_strategy is continuous' do
context 'when deploy_strategy is manual' do
let(:domain) { 'example.com' }
before do
auto_devops.deploy_strategy = 'continuous'
auto_devops.deploy_strategy = 'manual'
end
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