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

Commit

Permalink
release: remove slack webhook requirement (#62556)
Browse files Browse the repository at this point in the history
* remove slack webhook dependency

* update ci webhook vars
  • Loading branch information
BolajiOlajide authored May 8, 2024
1 parent 58a2e1b commit 4331b20
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,12 @@ requirements:
- name: "jq"
cmd: "jq --help"
- name: "Buidkite access token"
# `write_builds` permission is all that's needed here
# You also need to ensure you add access to the Sourcegraph organization on Buildkite.
env: BUILDKITE_ACCESS_TOKEN
only: # We only need this to create CI builds.
- internal.create
- promoteToPublic.create
# `write_builds` permission is all that's needed here
# You also need to ensure you add access to the Sourcegraph organization on Buildkite.

# announce-engineering slack webhook url:
# https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=pldpna5vivapxe4phewnqd42ji&h=team-sourcegraph.1password.com
- name: 'Slack Webhook URL'
env: SLACK_WEBHOOK_URL
only:
- promoteToPublic.finalize

# team-cloud-ops slack webhook url:
# https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=xwwpaakz5iajowr2fruueoevba&h=team-sourcegraph.1password.com
- name: 'Slack Webhook URL Cloud Ops'
env: SLACK_WEBHOOK_URL_CLOUD_OPS
only:
- promoteToPublic.finalize

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

0 comments on commit 4331b20

Please sign in to comment.