forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[circleci] remove slack push and use pgw
Closes: aptos-labs#975
- Loading branch information
Showing
1 changed file
with
3 additions
and
14 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 |
---|---|---|
|
@@ -5,7 +5,6 @@ orbs: | |
aws-ecr: circleci/[email protected] | ||
gcp-gcr: circleci/[email protected] | ||
kubernetes: circleci/[email protected] | ||
slack: circleci/[email protected] | ||
|
||
executors: | ||
ubuntu-medium: | ||
|
@@ -209,24 +208,14 @@ jobs: | |
# replace all newlines | ||
FORGE_COMMENT=$(awk '{printf "%s\\n", $0}' forge_comment.txt) | ||
# TODO(rustielin): report cluster name | ||
echo "forge_job_status $FGI_EXIT_CODE" | curl -u "$PUSH_GATEWAY_USER:$PUSH_GATEWAY_PASSWORD" --data-binary @- ${PUSH_GATEWAY}/metrics/job/forge | ||
# post github comment on the PR | ||
curl -s -H "Authorization: token ${FORGE_GH_TOKEN}" \ | ||
-X POST -d "{\"body\": \"${FORGE_COMMENT}\"}" \ | ||
"https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/issues/${PR_NUMBER}/comments" | ||
exit 0 | ||
- slack/notify: | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "[fgi($FGI_EXIT_CODE)] <$CIRCLE_BUILD_URL|Forge run> for $IMAGE_TAG: `$FORGE_REPORT_TXT`" | ||
} | ||
} | ||
] | ||
} | ||
- run: | ||
name: Check Forge status | ||
shell: /bin/bash | ||
|