1
1
# Copyright (c) HashiCorp, Inc.
2
2
# SPDX-License-Identifier: BUSL-1.1
3
3
4
- schema = " 1 "
4
+ schema = " 2 "
5
5
6
6
project "terraform" {
7
7
// the team key is not used by CRT currently
@@ -69,32 +69,6 @@ event "promote-staging" {
69
69
}
70
70
}
71
71
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
-
98
72
event "trigger-production" {
99
73
// This event is dispatched by the bob trigger-promotion command
100
74
// and is required - do not delete.
@@ -108,56 +82,13 @@ event "promote-production" {
108
82
workflow = " promote-production"
109
83
}
110
84
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
+ }
161
92
}
162
93
163
94
notification {
0 commit comments