debian-image-builder-frontend/.travis/custom_release.sh
2020-11-18 14:47:33 +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