Skip to content

Commit 5718f61

Browse files
committed
Check in post_deploy script
This script is used to send a deployment event to Assertible after the Heroku app has been delivered. Assertible will take the deployment event and initiate post-deployment API tests on the new release.
1 parent b14215b commit 5718f61

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

post_deploy.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
ENVIRONMENT=production
4+
VERSION=$CI_COMMIT_ID
5+
SERVICE=$ASSERTIBLE_SERVICE
6+
TOKEN=$ASSERTIBLE_TOKEN
7+
8+
curl -u $TOKEN: -XPOST "https://assertible.com/deployments" -d'{
9+
"service": "'"${SERVICE}"'",
10+
"environmentName": "'"${ENVIRONMENT}"'",
11+
"version": "'"${VERSION}"'"
12+
}'

0 commit comments

Comments
 (0)