2023-03-22 13:17:19 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-22 13:17:19 +00:00
|
|
|
|
2021-10-12 17:00:05 +00:00
|
|
|
schema = "1"
|
|
|
|
|
|
|
|
project "consul" {
|
|
|
|
team = "consul core"
|
|
|
|
slack {
|
|
|
|
# feed-consul-ci
|
2022-01-06 14:43:35 +00:00
|
|
|
notification_channel = "C9KPKPKRN"
|
2021-10-12 17:00:05 +00:00
|
|
|
}
|
|
|
|
github {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "consul"
|
|
|
|
release_branches = [
|
2022-01-06 14:43:35 +00:00
|
|
|
"main",
|
2022-08-01 19:56:55 +00:00
|
|
|
"release/**",
|
2021-10-12 17:00:05 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
event "build" {
|
|
|
|
action "build" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "build"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-05 20:16:47 +00:00
|
|
|
event "prepare" {
|
2021-10-12 17:00:05 +00:00
|
|
|
depends = ["build"]
|
2023-01-05 20:16:47 +00:00
|
|
|
action "prepare" {
|
2022-04-25 20:48:34 +00:00
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
2023-01-05 20:16:47 +00:00
|
|
|
workflow = "prepare"
|
|
|
|
depends = ["build"]
|
2021-10-12 17:00:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "fail"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-24 01:39:40 +00:00
|
|
|
## These are promotion and post-publish events
|
|
|
|
## they 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"
|
|
|
|
config = "release-metadata.hcl"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
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 = "always"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-17 16:54:36 +00:00
|
|
|
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 = "always"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
event "promote-production-docker" {
|
|
|
|
depends = ["promote-production"]
|
|
|
|
action "promote-production-docker" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "promote-production-docker"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
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 = "always"
|
|
|
|
}
|
2022-04-05 17:48:26 +00:00
|
|
|
}
|
2022-07-18 15:29:10 +00:00
|
|
|
|
|
|
|
event "post-publish-website" {
|
|
|
|
depends = ["promote-production-packaging"]
|
|
|
|
action "post-publish-website" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "post-publish-website"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "always"
|
|
|
|
}
|
|
|
|
}
|
2022-10-11 14:27:06 +00:00
|
|
|
|
|
|
|
event "update-ironbank" {
|
2023-03-23 16:21:27 +00:00
|
|
|
depends = ["post-publish-website"]
|
2022-10-11 14:27:06 +00:00
|
|
|
action "update-ironbank" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "update-ironbank"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "fail"
|
|
|
|
}
|
|
|
|
}
|