simplify production deploy scripts

This commit is contained in:
Brandon Thomas committed 2024-05-07 18:33:30 -07:00
1 parent 62d655143e
commit 0aada67d13
3 files changed
-42

No files matched your search

File renamed without changes.
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
set -euxo pipefail
MASTER_BRANCH='master'
PRODUCTION_BRANCH='production-storyteller'
git stash
git checkout $MASTER_BRANCH
git pull
if git show-ref --verify --quiet "refs/heads/$PRODUCTION_BRANCH"; then
echo "Deleting branch ${PRODUCTION_BRANCH}"
git branch -D $PRODUCTION_BRANCH
fi
git checkout -b $PRODUCTION_BRANCH
git push --set-upstream origin $PRODUCTION_BRANCH
git checkout $MASTER_BRANCH
-21
View File
@@ -1,21 +0,0 @@
#!/bin/bash
set -euxo pipefail
MASTER_BRANCH='master'
PRODUCTION_BRANCH='production-trumped'
git stash
git checkout $MASTER_BRANCH
git pull
if git show-ref --verify --quiet "refs/heads/$PRODUCTION_BRANCH"; then
echo "Deleting branch ${PRODUCTION_BRANCH}"
git branch -D $PRODUCTION_BRANCH
fi
git checkout -b $PRODUCTION_BRANCH
git push --set-upstream origin $PRODUCTION_BRANCH
git checkout $MASTER_BRANCH