Skip to content

Commit

Permalink
Adds script to regulate staging deploys (calcom#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars authored Feb 24, 2022
1 parent 795423a commit c616960
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/staging-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

if [[ "$VERCEL_GIT_COMMIT_REF" == "staging" ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
./vercel.sh
exit 1;

else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi

0 comments on commit c616960

Please sign in to comment.