Skip to content

Commit 254b65a

Browse files
committed
Merge pull request #34782 from hashicorp/radditude/fix-tfc-update
release: use new syntax for promotion hooks
1 parent 42dc571 commit 254b65a

File tree

1 file changed

+8
-77
lines changed

1 file changed

+8
-77
lines changed

.release/ci.hcl

Lines changed: 8 additions & 77 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 "terraform" {
77
// the team key is not used by CRT currently
@@ -69,32 +69,6 @@ event "promote-staging" {
6969
}
7070
}
7171

72-
event "promote-staging-docker" {
73-
depends = ["promote-staging"]
74-
action "promote-staging-docker" {
75-
organization = "hashicorp"
76-
repository = "crt-workflows-common"
77-
workflow = "promote-staging-docker"
78-
}
79-
80-
notification {
81-
on = "always"
82-
}
83-
}
84-
85-
event "promote-staging-packaging" {
86-
depends = ["promote-staging-docker"]
87-
action "promote-staging-packaging" {
88-
organization = "hashicorp"
89-
repository = "crt-workflows-common"
90-
workflow = "promote-staging-packaging"
91-
}
92-
93-
notification {
94-
on = "always"
95-
}
96-
}
97-
9872
event "trigger-production" {
9973
// This event is dispatched by the bob trigger-promotion command
10074
// and is required - do not delete.
@@ -108,56 +82,13 @@ event "promote-production" {
10882
workflow = "promote-production"
10983
}
11084

111-
notification {
112-
on = "always"
113-
}
114-
}
115-
116-
event "crt-hook-tfc-upload" {
117-
depends = ["promote-production"]
118-
action "crt-hook-tfc-upload" {
119-
organization = "hashicorp"
120-
repository = "terraform-releases"
121-
workflow = "crt-hook-tfc-upload"
122-
}
123-
124-
notification {
125-
on = "always"
126-
}
127-
}
128-
129-
event "promote-production-docker" {
130-
depends = ["crt-hook-tfc-upload"]
131-
action "promote-production-docker" {
132-
organization = "hashicorp"
133-
repository = "crt-workflows-common"
134-
workflow = "promote-production-docker"
135-
}
136-
137-
notification {
138-
on = "always"
139-
}
140-
}
141-
142-
event "promote-production-packaging" {
143-
depends = ["promote-production-docker"]
144-
action "promote-production-packaging" {
145-
organization = "hashicorp"
146-
repository = "crt-workflows-common"
147-
workflow = "promote-production-packaging"
148-
}
149-
150-
notification {
151-
on = "always"
152-
}
153-
}
154-
155-
event "update-ironbank" {
156-
depends = ["promote-production-packaging"]
157-
action "update-ironbank" {
158-
organization = "hashicorp"
159-
repository = "crt-workflows-common"
160-
workflow = "update-ironbank"
85+
promotion-events {
86+
update-ironbank = true
87+
post-promotion {
88+
organization = "hashicorp"
89+
repository = "terraform-releases"
90+
workflow = "crt-hook-tfc-upload"
91+
}
16192
}
16293

16394
notification {

0 commit comments

Comments
 (0)