Skip to content

Commit 554ba2f

Browse files
committed
Updates ops templates to use blue/green deployment
1 parent 9a8c425 commit 554ba2f

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

operations/deploy-live.hcl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ job "sbws-live" {
44
namespace = "live-network"
55

66
update {
7-
max_parallel = 1
8-
healthy_deadline = "15m"
9-
progress_deadline = "20m"
7+
max_parallel = 1
8+
canary = 1
9+
min_healthy_time = "30s"
10+
healthy_deadline = "5m"
11+
auto_revert = true
12+
auto_promote = true
1013
}
1114

1215
group "sbws-live-group" {

operations/deploy-stage.hcl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ job "sbws-stage" {
44
namespace = "stage-network"
55

66
update {
7-
max_parallel = 1
8-
healthy_deadline = "15m"
9-
progress_deadline = "20m"
7+
max_parallel = 1
8+
canary = 1
9+
min_healthy_time = "30s"
10+
healthy_deadline = "5m"
11+
auto_revert = true
12+
auto_promote = true
1013
}
1114

1215
spread {

0 commit comments

Comments
 (0)