debian-image-builder-frontend/.travis/custom_release.sh
Sanne Raymaekers c6c616a9dc 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.
2021-03-19 11:15:52 +01:00

30 lines
610 B
Bash
Executable file

#!/bin/bash
set -e
set -x
if [ "${TRAVIS_BRANCH}" = "main" ]
then
for env in ci qa stage
do
echo "PUSHING ${env}-beta"
rm -rf ./dist/.git
.travis/release.sh "${env}-beta"
done
fi
if [ "${TRAVIS_BRANCH}" = "main-stable" ]
then
for env in ci qa stage
do
echo "PUSHING ${env}-stable"
rm -rf ./dist/.git
.travis/release.sh "${env}-stable"
done
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