debian-image-builder-frontend/.travis/custom_release.sh
Sanne Raymaekers 3a74c564de .travis: Introduce simplified custom release script
The default release script doesn't push `main` to stage-beta, so
reintroduce the custom_release script. This script is simplified
however, and doesn't push to the ci/qa environments as those aren't used
by image-builder anyway.
2022-04-14 14:22:49 +02:00

18 lines
366 B
Bash
Executable file

#!/bin/bash
set -ex
if [ "${TRAVIS_BRANCH}" = "main" ]; then
.travis/release.sh "stage-beta"
fi
if [ "${TRAVIS_BRANCH}" = "stage-stable" ]; then
.travis/release.sh "stage-stable"
fi
if [ "${TRAVIS_BRANCH}" = "prod-beta" ]; then
.travis/release.sh "prod-beta"
fi
if [ "${TRAVIS_BRANCH}" = "prod-stable" ]; then
.travis/release.sh "prod-stable"
fi