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
78ae2304
Commit
78ae2304
authored
Jun 06, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse logic of manual and continuous deploy strategies
parent
9738b0a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/project_auto_devops.rb
app/models/project_auto_devops.rb
+1
-1
spec/models/project_auto_devops_spec.rb
spec/models/project_auto_devops_spec.rb
+2
-2
No files found.
app/models/project_auto_devops.rb
View file @
78ae2304
...
...
@@ -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
...
...
spec/models/project_auto_devops_spec.rb
View file @
78ae2304
...
...
@@ -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
...
...
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