Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Circle: Tenderly Integration #536

Merged
merged 2 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion implementation/scripts/circleci-migrate-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

if [[ -z $GOOGLE_PROJECT_NAME || -z $GOOGLE_PROJECT_ID || -z $BUILD_TAG || -z $GOOGLE_REGION || -z $GOOGLE_COMPUTE_ZONE_A || -z $TRUFFLE_NETWORK ]]; then
if [[ -z $GOOGLE_PROJECT_NAME || -z $GOOGLE_PROJECT_ID || -z $BUILD_TAG || -z $GOOGLE_REGION || -z $GOOGLE_COMPUTE_ZONE_A || -z $TRUFFLE_NETWORK || -z $TENDERLY_TOKEN || -z $ETH_NETWORK_ID ]]; then
echo "one or more required variables are undefined"
exit 1
fi
Expand Down Expand Up @@ -56,6 +56,10 @@ ssh utilitybox << EOF
npm ci
./node_modules/.bin/truffle migrate --reset --network $TRUFFLE_NETWORK
echo ">>>>>>FINISH Contract Migration FINISH>>>>>>"
echo "<<<<<<START Tenderly Push START<<<<<<"
tenderly login --authentication-method token --token $TENDERLY_TOKEN
tenderly push --networks $ETH_NETWORK_ID --tag tbtc --tag $GOOGLE_PROJECT_NAME --tag $BUILD_TAG
echo "<<<<<<FINISH Tenderly Push FINISH<<<<<<"
EOF

echo "<<<<<<START Contract Copy START<<<<<<"
Expand Down
3 changes: 3 additions & 0 deletions implementation/tenderly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
account_id: fdb360e5-d879-46aa-92ac-3913a4d6508f
project_slug: keep