Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 4331b20

Browse files
release: remove slack webhook requirement (#62556)
* remove slack webhook dependency * update ci webhook vars
1 parent 58a2e1b commit 4331b20

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

release.yaml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,12 @@ requirements:
1111
- name: "jq"
1212
cmd: "jq --help"
1313
- name: "Buidkite access token"
14+
# `write_builds` permission is all that's needed here
15+
# You also need to ensure you add access to the Sourcegraph organization on Buildkite.
1416
env: BUILDKITE_ACCESS_TOKEN
1517
only: # We only need this to create CI builds.
1618
- internal.create
1719
- promoteToPublic.create
18-
# `write_builds` permission is all that's needed here
19-
# You also need to ensure you add access to the Sourcegraph organization on Buildkite.
20-
21-
# announce-engineering slack webhook url:
22-
# https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=pldpna5vivapxe4phewnqd42ji&h=team-sourcegraph.1password.com
23-
- name: 'Slack Webhook URL'
24-
env: SLACK_WEBHOOK_URL
25-
only:
26-
- promoteToPublic.finalize
27-
28-
# team-cloud-ops slack webhook url:
29-
# https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=xwwpaakz5iajowr2fruueoevba&h=team-sourcegraph.1password.com
30-
- name: 'Slack Webhook URL Cloud Ops'
31-
env: SLACK_WEBHOOK_URL_CLOUD_OPS
32-
only:
33-
- promoteToPublic.finalize
3420

3521
internal:
3622
create:
@@ -282,7 +268,7 @@ promoteToPublic:
282268
echo "Posting slack notification for release"
283269
tag="{{tag}}"
284270
changelog_version="${tag//./}"
285-
webhooks=("$SLACK_WEBHOOK_URL" "$SLACK_WEBHOOK_URL_CLOUD_OPS")
271+
webhooks=("$ANNOUNCE_ENG_SLACK_WEBHOOK_URL" "$CLOUD_OPS_SLACK_WEBHOOK_URL")
286272
for webhook in "${webhooks[@]}"
287273
do
288274
body=$(wget --content-on-error -O- --header="Content-Type: application/json" --post-data '{

0 commit comments

Comments
 (0)