feature branch

This commit is contained in:
Marc Beninca 2024-07-20 18:04:04 +02:00
parent b2a882079a
commit 87a8c4ce75
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -3,6 +3,7 @@
# defaults
[ -n "${SPCD_BRANCH_RELEASE}" ] || SPCD_BRANCH_RELEASE="main"
[ -n "${SPCD_BRANCH_STAGING}" ] || SPCD_BRANCH_STAGING="dev"
[ -n "${SPCD_BRANCH_FEATURE}" ] || SPCD_BRANCH_FEATURE="f"
[ -n "${SPCD_DNS}" ] || SPCD_DNS="\
9.9.9.9 \
"
@ -129,7 +130,7 @@ spcd_set_environment_variables() {
fi
# check project variables
case "${SPCD_PROJECT_BRANCH}" in
"${SPCD_BRANCH_RELEASE}" | "${SPCD_BRANCH_STAGING}") ;;
"${SPCD_BRANCH_RELEASE}" | "${SPCD_BRANCH_STAGING}" | "${SPCD_BRANCH_FEATURE}") ;;
*) spcd_error_ci "SPCD_PROJECT_BRANCH" ;;
esac
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"