diff --git a/.release/ci.hcl b/.release/ci.hcl index 674736b19223..c76f92cfcaa6 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -172,8 +172,16 @@ event "verify" { } } -event "promote-staging" { +## These events are publish and post-publish events and should be added to the end of the file +## after the verify event stanza. + +event "trigger-staging" { +// This event is dispatched by the bob trigger-promotion command +// and is required - do not delete. +} +event "promote-staging" { + depends = ["trigger-staging"] action "promote-staging" { organization = "hashicorp" repository = "crt-workflows-common" @@ -181,16 +189,30 @@ event "promote-staging" { } notification { - on = "fail" + on = "always" + } +} + +event "promote-staging-docker" { + depends = ["promote-staging"] + action "promote-staging-docker" { + organization = "hashicorp" + repository = "crt-workflows-common" + workflow = "promote-staging-docker" } notification { - on = "success" + on = "always" } } -event "promote-production" { +event "trigger-production" { +// This event is dispatched by the bob trigger-promotion command +// and is required - do not delete. +} +event "promote-production" { + depends = ["trigger-production"] action "promote-production" { organization = "hashicorp" repository = "crt-workflows-common" @@ -198,28 +220,32 @@ event "promote-production" { } notification { - on = "fail" - } - - notification { - on = "success" + on = "always" } } -event "post-publish" { +event "promote-production-docker" { depends = ["promote-production"] - - action "post-publish" { + action "promote-production-docker" { organization = "hashicorp" repository = "crt-workflows-common" - workflow = "post-publish" + workflow = "promote-production-docker" } notification { - on = "fail" + on = "always" + } +} + +event "promote-production-packaging" { + depends = ["promote-production-docker"] + action "promote-production-packaging" { + organization = "hashicorp" + repository = "crt-workflows-common" + workflow = "promote-production-packaging" } notification { - on = "success" + on = "always" } }