debian-image-builder-frontend/.travis/custom_release.sh
Major Hayden c9d5751d57
🚀 Deploy to stage-beta and stage-stable (#25)
Ensure we deploy to stage-beta (when master is updated) and stage-stable (when master-stable is updated).
2020-10-30 07:26:38 -05:00

30 lines
614 B
Bash
Executable file

#!/bin/bash
set -e
set -x
if [ "${TRAVIS_BRANCH}" = "master" ]
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}" = "master-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