94fc061936
Auto DevOps deployment strategies now supports timed incremental rollout. We are deprecating the usage of INCREMENTAL_ROLLOUT_ENABLED environment variable in Auto DevOps template. The new behavior will be driven by the INCREMENTAL_ROLLOUT_MODE variable that can either be manual (same as INCREMENTAL_ROLLOUT_ENABLED) or timed. Rollout deployments will be executed using a 5 minute delay between each job.
24 lines
746 B
Ruby
24 lines
746 B
Ruby
FactoryBot.define do
|
|
factory :project_auto_devops do
|
|
project
|
|
enabled true
|
|
domain "example.com"
|
|
deploy_strategy :continuous
|
|
|
|
trait :continuous_deployment do
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:continuous] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
|
end
|
|
|
|
trait :manual_deployment do
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:manual] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
|
end
|
|
|
|
trait :timed_incremental_deployment do
|
|
deploy_strategy ProjectAutoDevops.deploy_strategies[:timed_incremental] # rubocop:disable FactoryBot/DynamicAttributeDefinedStatically
|
|
end
|
|
|
|
trait :disabled do
|
|
enabled false
|
|
end
|
|
end
|
|
end
|