feature branch
This commit is contained in:
parent
b2a882079a
commit
87a8c4ce75
1 changed files with 2 additions and 1 deletions
3
spcd.sh
3
spcd.sh
|
@ -3,6 +3,7 @@
|
||||||
# defaults
|
# defaults
|
||||||
[ -n "${SPCD_BRANCH_RELEASE}" ] || SPCD_BRANCH_RELEASE="main"
|
[ -n "${SPCD_BRANCH_RELEASE}" ] || SPCD_BRANCH_RELEASE="main"
|
||||||
[ -n "${SPCD_BRANCH_STAGING}" ] || SPCD_BRANCH_STAGING="dev"
|
[ -n "${SPCD_BRANCH_STAGING}" ] || SPCD_BRANCH_STAGING="dev"
|
||||||
|
[ -n "${SPCD_BRANCH_FEATURE}" ] || SPCD_BRANCH_FEATURE="f"
|
||||||
[ -n "${SPCD_DNS}" ] || SPCD_DNS="\
|
[ -n "${SPCD_DNS}" ] || SPCD_DNS="\
|
||||||
9.9.9.9 \
|
9.9.9.9 \
|
||||||
"
|
"
|
||||||
|
@ -129,7 +130,7 @@ spcd_set_environment_variables() {
|
||||||
fi
|
fi
|
||||||
# check project variables
|
# check project variables
|
||||||
case "${SPCD_PROJECT_BRANCH}" in
|
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" ;;
|
*) spcd_error_ci "SPCD_PROJECT_BRANCH" ;;
|
||||||
esac
|
esac
|
||||||
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
|
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
|
||||||
|
|
Loading…
Reference in a new issue