travis: Fork main to prod-beta

Let the prod-beta branch instead of the main branch push to the
prod-beta branch in the -build repository.
This commit is contained in:
Sanne Raymaekers 2021-03-18 15:02:08 +01:00
parent f268441d41
commit c6c616a9dc

View file

@ -4,7 +4,7 @@ set -x
if [ "${TRAVIS_BRANCH}" = "main" ]
then
for env in ci qa stage prod
for env in ci qa stage
do
echo "PUSHING ${env}-beta"
rm -rf ./dist/.git
@ -23,9 +23,8 @@ then
done
fi
# Enable this once we fork prod from stage
# if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then
# echo "PUSHING ${TRAVIS_BRANCH}"
# rm -rf ./build/.git
# .travis/release.sh "${TRAVIS_BRANCH}"
# fi
if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then
echo "PUSHING ${TRAVIS_BRANCH}"
rm -rf ./build/.git
.travis/release.sh "${TRAVIS_BRANCH}"
fi