Skip to content

Commit 8a89a1c

Browse files
Upgrade to CRT schema 2 to fix crt-report-dispatch event (hashicorp#8572) (hashicorp#8809)
Co-authored-by: james-warren0 <[email protected]>
1 parent 8009bb9 commit 8a89a1c

File tree

1 file changed

+6
-75
lines changed

1 file changed

+6
-75
lines changed

.release/ci.hcl

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) HashiCorp, Inc.
22
# SPDX-License-Identifier: BUSL-1.1
33

4-
schema = "1"
4+
schema = "2"
55

66
project "vault" {
77
team = "vault"
@@ -81,19 +81,6 @@ event "promote-staging" {
8181
}
8282
}
8383

84-
event "promote-staging-docker" {
85-
depends = ["promote-staging"]
86-
action "promote-staging-docker" {
87-
organization = "hashicorp"
88-
repository = "crt-workflows-common"
89-
workflow = "promote-staging-docker"
90-
}
91-
92-
notification {
93-
on = "always"
94-
}
95-
}
96-
9784
event "trigger-production" {
9885
// This event is dispatched by the bob trigger-promotion command
9986
// and is required - do not delete.
@@ -107,81 +94,25 @@ event "promote-production" {
10794
workflow = "promote-production"
10895
}
10996

110-
notification {
111-
on = "always"
112-
}
113-
}
114-
115-
event "promote-production-docker" {
116-
depends = ["promote-production"]
117-
action "promote-production-docker" {
118-
organization = "hashicorp"
119-
repository = "crt-workflows-common"
120-
workflow = "promote-production-docker"
121-
}
122-
123-
notification {
124-
on = "always"
125-
}
126-
}
127-
128-
event "promote-production-packaging" {
129-
depends = ["promote-production-docker"]
130-
action "promote-production-packaging" {
131-
organization = "hashicorp"
132-
repository = "crt-workflows-common"
133-
workflow = "promote-production-packaging"
134-
}
135-
136-
notification {
137-
on = "always"
138-
}
139-
}
140-
141-
# The post-publish-website event should not be merged into the enterprise repo.
142-
# It is for OSS use only.
143-
event "post-publish-website" {
144-
depends = ["promote-production-packaging"]
145-
action "post-publish-website" {
146-
organization = "hashicorp"
147-
repository = "crt-workflows-common"
148-
workflow = "post-publish-website"
97+
promotion-events {
98+
update-ironbank = true
99+
bump-version-patch = true
100+
post-publish-website = true
149101
}
150102

151103
notification {
152104
on = "always"
153105
}
154106
}
155107

156-
event "bump-version" {
157-
depends = ["post-publish-website"]
158-
action "bump-version" {
159-
organization = "hashicorp"
160-
repository = "crt-workflows-common"
161-
workflow = "bump-version"
162-
}
163-
}
164-
165-
event "update-ironbank" {
166-
depends = ["bump-version"]
167-
action "update-ironbank" {
168-
organization = "hashicorp"
169-
repository = "crt-workflows-common"
170-
workflow = "update-ironbank"
171-
}
172-
173-
notification {
174-
on = "fail"
175-
}
176-
}
177-
178108
event "crt-generate-sbom" {
179109
depends = ["promote-production"]
180110
action "crt-generate-sbom" {
181111
organization = "hashicorp"
182112
repository = "security-generate-release-sbom"
183113
workflow = "crt-generate-sbom"
184114
}
115+
185116
notification {
186117
on = "fail"
187118
}

0 commit comments

Comments
 (0)