Skip to content

Commit

Permalink
rm: option to be able to release to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ghannay10 committed Mar 26, 2024
1 parent 67df0dc commit 7320e70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
tags:
- release-dev-**
- release-preprod-**
- release-prod-**

branches:
- main
Expand Down
6 changes: 1 addition & 5 deletions infrastructure/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ echo "New tag name will be " "$TAG_NAME"
if [ $ENV == 'prod' ]; then
echo ''
if [ $BRANCH != 'main' ]; then
echo -e "\033[0;31mYou can only deploy to prod from main branch\033[0m"
exit 0
fi
read -p "DANGER: Are you sure you want to push to prod without a PR? Enter y to continue: " answer
if [ $answer != 'y' ]; then
echo -e "\033[0;31mYou can only deploy to prod through a PR into main\033[0m"
exit 0
fi
fi
Expand Down

0 comments on commit 7320e70

Please sign in to comment.