generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure release orchestration, step 1 of n (#288)
This change adds .release/ci.hcl. This file is "read by the crt-orchestrator app and should include the events required to trigger the common workflows responsible for processing the artifacts built in the previous phase." For "step 1 of n," we simply add the common `prepare` workflow, which crt-orchestrator will run after a successful `build` workflow run. The only side effect of `prepare` is upload to HashiCorp's artifact store. That keeps this change a safe distance away from existing staging and production releases.
- Loading branch information
Showing
2 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Reference: https://github.com/hashicorp/crt-core-helloworld/blob/main/.release/ci.hcl (private repository) | ||
|
||
schema = "2" | ||
|
||
project "terraform-provider-cloudinit" { | ||
// team is currently unused and has no meaning | ||
// but is required to be non-empty by CRT orchestator | ||
team = "_UNUSED_" | ||
|
||
slack { | ||
notification_channel = "C02M018DV27" // #feed-tf-devex | ||
} | ||
|
||
github { | ||
organization = "hashicorp" | ||
repository = "terraform-provider-cloudinit" | ||
release_branches = ["main"] | ||
} | ||
} | ||
|
||
event "build" { | ||
action "build" { | ||
organization = "hashicorp" | ||
repository = "terraform-provider-cloudinit" | ||
workflow = "build" | ||
} | ||
} | ||
|
||
event "prepare" { | ||
# `prepare` is the Common Release Tooling (CRT) artifact processing workflow. | ||
# It prepares artifacts for potential promotion to staging and production. | ||
# For example, it scans and signs artifacts. | ||
|
||
depends = ["build"] | ||
|
||
action "prepare" { | ||
organization = "hashicorp" | ||
repository = "crt-workflows-common" | ||
workflow = "prepare" | ||
depends = ["build"] | ||
} | ||
|
||
notification { | ||
on = "fail" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# Reference: https://github.com/hashicorp/security-scanner/blob/main/CONFIG.md#binary (private repository) | ||
|
||
binary { | ||
secrets = true | ||
go_modules = true | ||
osv = true | ||
oss_index = false | ||
nvd = false | ||
secrets { | ||
all = true | ||
} | ||
go_modules = true | ||
osv = true | ||
oss_index = false | ||
nvd = false | ||
} |