From 87a8c4ce75d8de3e9beca34f6a0e3fe4117468c6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 20 Jul 2024 18:04:04 +0200 Subject: [PATCH] feature branch --- spcd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spcd.sh b/spcd.sh index b8d7ed1..47c5c23 100644 --- a/spcd.sh +++ b/spcd.sh @@ -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"