Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Onboard random provider to CRT #649

Merged
merged 3 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .release/ci.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Reference: https://github.com/hashicorp/crt-core-helloworld/blob/main/.release/ci.hcl (private repository)

schema = "2"

project "terraform-provider-random" {
// team is currently unused and has no meaning
// but is required to be non-empty by CRT orchestator
team = "_UNUSED_"

slack {
notification_channel = "C02BASDVCDT" // #feed-terraform-sdk
}

github {
organization = "hashicorp"
repository = "terraform-provider-random"
release_branches = ["main", "release/**"]
}
}

event "merge" {
}

event "build" {
action "build" {
depends = ["merge"]

organization = "hashicorp"
repository = "terraform-provider-random"
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"
}
}

event "trigger-staging" {
}

event "promote-staging" {
action "promote-staging" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "promote-staging"
depends = null
config = "release-metadata.hcl"
}

depends = ["trigger-staging"]

notification {
on = "always"
}
}

event "trigger-production" {
}

event "promote-production" {
action "promote-production" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "promote-production"
depends = null
config = ""
}

depends = ["trigger-production"]

notification {
on = "always"
}
}
4 changes: 4 additions & 0 deletions .release/oss-release-metadata.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url_source_repository = "https://github.com/hashicorp/terraform-provider-random"
url_project_website = "https://registry.terraform.io/providers/hashicorp/random"
url_license = "https://github.com/hashicorp/terraform-provider-random/blob/main/LICENSE"
url_release_notes = "https://github.com/hashicorp/terraform-provider-random/blob/main/CHANGELOG.md"
2 changes: 0 additions & 2 deletions .release/release-metadata.hcl

This file was deleted.

11 changes: 11 additions & 0 deletions .release/security-scan.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Reference: https://github.com/hashicorp/security-scanner/blob/main/CONFIG.md#binary (private repository)

binary {
secrets {
all = true
}
go_modules = true
osv = true
oss_index = false
nvd = false
}
16 changes: 16 additions & 0 deletions .release/terraform-provider-random-artifacts.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
schema = 1
artifacts {
zip = [
"terraform-provider-random_${version}_darwin_amd64.zip",
"terraform-provider-random_${version}_darwin_arm64.zip",
"terraform-provider-random_${version}_freebsd_386.zip",
"terraform-provider-random_${version}_freebsd_amd64.zip",
"terraform-provider-random_${version}_freebsd_arm.zip",
"terraform-provider-random_${version}_linux_386.zip",
"terraform-provider-random_${version}_linux_amd64.zip",
"terraform-provider-random_${version}_linux_arm.zip",
"terraform-provider-random_${version}_linux_arm64.zip",
"terraform-provider-random_${version}_windows_386.zip",
"terraform-provider-random_${version}_windows_amd64.zip",
]
}
1 change: 1 addition & 0 deletions version/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.7.0-alpha1
Loading