Skip to content

Commit

Permalink
backport of commit 687bb1c (#14281)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah <[email protected]>
  • Loading branch information
1 parent bcfb75a commit fcbe948
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions .release/ci.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -172,54 +172,80 @@ 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"
workflow = "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"
workflow = "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"
}
}

0 comments on commit fcbe948

Please sign in to comment.