Skip to content

Commit

Permalink
[circleci] remove slack push and use pgw
Browse files Browse the repository at this point in the history
  • Loading branch information
rustielin authored and aptos-bot committed May 15, 2022
1 parent 8f1bb6d commit e6ffd6c
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e6ffd6c

Please sign in to comment.