Skip to content

Commit b3926f1

Browse files
committed
bulid: add CRT pipeline
1 parent 38b5497 commit b3926f1

File tree

3 files changed

+149
-0
lines changed

3 files changed

+149
-0
lines changed

.release/ci.hcl

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
schema = "1"
2+
3+
project "http-echo" {
4+
// the team key is not used by CRT currently
5+
team = "team-consul"
6+
slack {
7+
notification_channel = "C0253EQ5B40"
8+
}
9+
github {
10+
organization = "hashicorp"
11+
repository = "http-echo"
12+
// An allow-list of branch names where artifacts are built. Note that wildcards are accepted!
13+
// Artifacts built from these branches will be processed through CRT and get into a
14+
// "release ready" state.
15+
release_branches = [
16+
"main",
17+
"release/**"
18+
]
19+
}
20+
}
21+
22+
event "merge" {
23+
// "entrypoint" to use if build is not run automatically
24+
// i.e. send "merge" complete signal to orchestrator to trigger build
25+
}
26+
27+
event "build" {
28+
depends = ["merge"]
29+
action "build" {
30+
organization = "hashicorp"
31+
repository = "http-echo"
32+
workflow = "build"
33+
}
34+
}
35+
36+
// Read more about what the `prepare` workflow does here:
37+
// https://hashicorp.atlassian.net/wiki/spaces/RELENG/pages/2489712686/Dec+7th+2022+-+Introducing+the+new+Prepare+workflow
38+
event "prepare" {
39+
depends = ["build"]
40+
41+
action "prepare" {
42+
organization = "hashicorp"
43+
repository = "crt-workflows-common"
44+
workflow = "prepare"
45+
depends = ["build"]
46+
}
47+
48+
notification {
49+
on = "fail"
50+
}
51+
}
52+
53+
## These are promotion and post-publish events
54+
## they should be added to the end of the file after the verify event stanza.
55+
56+
event "trigger-staging" {
57+
// This event is dispatched by the bob trigger-promotion command
58+
// and is required - do not delete.
59+
}
60+
61+
event "promote-staging" {
62+
depends = ["trigger-staging"]
63+
action "promote-staging" {
64+
organization = "hashicorp"
65+
repository = "crt-workflows-common"
66+
workflow = "promote-staging"
67+
config = "release-metadata.hcl"
68+
}
69+
70+
notification {
71+
on = "always"
72+
}
73+
}
74+
75+
event "promote-staging-docker" {
76+
depends = ["promote-staging"]
77+
action "promote-staging-docker" {
78+
organization = "hashicorp"
79+
repository = "crt-workflows-common"
80+
workflow = "promote-staging-docker"
81+
}
82+
83+
notification {
84+
on = "always"
85+
}
86+
}
87+
88+
event "trigger-production" {
89+
// This event is dispatched by the bob trigger-promotion command
90+
// and is required - do not delete.
91+
}
92+
93+
event "promote-production" {
94+
depends = ["trigger-production"]
95+
action "promote-production" {
96+
organization = "hashicorp"
97+
repository = "crt-workflows-common"
98+
workflow = "promote-production"
99+
}
100+
101+
notification {
102+
on = "always"
103+
}
104+
}
105+
106+
event "promote-production-docker" {
107+
depends = ["promote-production"]
108+
action "promote-production-docker" {
109+
organization = "hashicorp"
110+
repository = "crt-workflows-common"
111+
workflow = "promote-production-docker"
112+
}
113+
114+
notification {
115+
on = "always"
116+
}
117+
}
118+
119+
120+
event "bump-version-patch" {
121+
depends = ["promote-production-docker"]
122+
action "bump-version" {
123+
organization = "HashiCorp-RelEng-Dev"
124+
repository = "crt-workflows-common"
125+
workflow = "bump-version"
126+
}
127+
128+
notification {
129+
on = "fail"
130+
}
131+
}

.release/release.metadata.hcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
url_docker_registry_dockerhub = "https://hub.docker.com/r/hashicorp/http-echo"
2+
url_source_repository = "https://github/hashicorp/http-echo"
3+
url_project_website = "https://github/hashicorp/http-echo"
4+
url_license = "https://github.com/hashicorp/http-echo/blob/main/LICENSE"
5+
url_release_notes = "https://github.com/hashicorp/http-echo/releases"

.release/security-scan.hcl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
container {
2+
dependencies = true
3+
alpine_secdb = true
4+
secrets = true
5+
}
6+
7+
binary {
8+
secrets = true
9+
go_modules = true
10+
osv = true
11+
oss_index = false
12+
nvd = false
13+
}

0 commit comments

Comments
 (0)