From d149271cc3442ccf8b1b46ceda157421a822fb44 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: Fri, 25 Feb 2022 12:27:12 -0500 Subject: [PATCH] backport of commit 687bb1c3cfdedf8be53deda85040676005a3db50 (#14283) 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 88e7411a5b93..0bb3a97a1a68 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -159,8 +159,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" @@ -168,16 +176,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" @@ -185,28 +207,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" } }