From 42cd08b43c8bd8c6137c28c9fa2e575323fedf73 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Mon, 28 Feb 2022 05:41:39 -0500 Subject: [PATCH] backport of commit 687bb1c3cfdedf8be53deda85040676005a3db50 (#14282) Co-authored-by: Sarah --- .release/ci.hcl | 56 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 15 deletions(-) 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" } }