2023-04-10 15:36:59 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
schema = "1"
|
|
|
|
|
|
|
|
project "nomad" {
|
|
|
|
team = "nomad"
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
slack {
|
2022-04-11 23:12:58 +00:00
|
|
|
notification_channel = "C03B5EWFW01"
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
github {
|
2022-04-28 00:14:23 +00:00
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "nomad"
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2022-04-28 00:14:23 +00:00
|
|
|
release_branches = [
|
|
|
|
"main",
|
2022-08-02 16:38:33 +00:00
|
|
|
"release/**",
|
2022-04-28 00:14:23 +00:00
|
|
|
]
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
event "build" {
|
|
|
|
action "build" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "nomad"
|
|
|
|
workflow = "build"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-16 23:51:59 +00:00
|
|
|
event "prepare" {
|
2022-04-06 15:47:02 +00:00
|
|
|
depends = ["build"]
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2023-02-16 23:51:59 +00:00
|
|
|
action "prepare" {
|
2022-04-06 15:47:02 +00:00
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
2023-02-16 23:51:59 +00:00
|
|
|
workflow = "prepare"
|
|
|
|
depends = ["build"]
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
2023-03-23 21:34:45 +00:00
|
|
|
on = "always"
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
## These are promotion and post-publish events
|
2023-02-16 23:51:59 +00:00
|
|
|
## they should be added to the end of the file after the prepare event stanza.
|
2022-04-06 15:47:02 +00:00
|
|
|
|
|
|
|
event "trigger-staging" {
|
2022-07-08 21:07:18 +00:00
|
|
|
// This event is dispatched by the bob trigger-promotion command // and is required - do not delete.
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
event "promote-staging" {
|
|
|
|
depends = ["trigger-staging"]
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
action "promote-staging" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "promote-staging"
|
2022-05-04 08:48:42 +00:00
|
|
|
config = "release-metadata.hcl"
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "always"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-23 19:57:09 +00:00
|
|
|
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-04-06 15:47:02 +00:00
|
|
|
event "trigger-production" {
|
2022-07-08 21:07:18 +00:00
|
|
|
// This event is dispatched by the bob trigger-promotion command // and is required - do not delete.
|
2022-04-06 15:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
event "promote-production" {
|
|
|
|
depends = ["trigger-production"]
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
action "promote-production" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "promote-production"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "always"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-23 19:57:09 +00:00
|
|
|
event "promote-production-docker" {
|
2022-04-06 15:47:02 +00:00
|
|
|
depends = ["promote-production"]
|
2022-07-08 21:07:18 +00:00
|
|
|
|
2023-06-23 19:57:09 +00:00
|
|
|
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"]
|
|
|
|
|
2022-04-06 15:47:02 +00:00
|
|
|
action "promote-production-packaging" {
|
|
|
|
organization = "hashicorp"
|
|
|
|
repository = "crt-workflows-common"
|
|
|
|
workflow = "promote-production-packaging"
|
|
|
|
}
|
|
|
|
|
|
|
|
notification {
|
|
|
|
on = "always"
|
|
|
|
}
|
|
|
|
}
|
2022-07-18 16:48:16 +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"
|
|
|
|
}
|
|
|
|
}
|