Skip to content

Commit

Permalink
- Updated schema version to v2
Browse files Browse the repository at this point in the history
- Added update-ironbank in promotion events block
- Condensed promote-staging block
  (Promote-*-packaging and promote-*-docker will be automatically
   run based on what is built and in artifactory)
  • Loading branch information
emilymianeil committed Mar 7, 2024
1 parent 97a4098 commit c0694f2
Showing 1 changed file with 2 additions and 66 deletions.
68 changes: 2 additions & 66 deletions .release/ci.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

schema = "1"
schema = "2"

project "terraform" {
// the team key is not used by CRT currently
Expand Down Expand Up @@ -69,32 +69,6 @@ event "promote-staging" {
}
}

event "promote-staging-docker" {
depends = ["promote-staging"]
action "promote-staging-docker" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "promote-staging-docker"
}

notification {
on = "always"
}
}

event "promote-staging-packaging" {
depends = ["promote-staging-docker"]
action "promote-staging-packaging" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "promote-staging-packaging"
}

notification {
on = "always"
}
}

event "trigger-production" {
// This event is dispatched by the bob trigger-promotion command
// and is required - do not delete.
Expand All @@ -109,6 +83,7 @@ event "promote-production" {
}

promotion-events {
update-ironbank = true
post-promotion {
organization = "hashicorp"
repository = "terraform-releases"
Expand All @@ -120,42 +95,3 @@ event "promote-production" {
on = "always"
}
}

event "promote-production-docker" {
depends = ["crt-hook-tfc-upload"]
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"
}
}

event "update-ironbank" {
depends = ["promote-production-packaging"]
action "update-ironbank" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "update-ironbank"
}

notification {
on = "always"
}
}

0 comments on commit c0694f2

Please sign in to comment.