Compare commits

..

3 commits

Author SHA1 Message Date
dec6cf211a
*/* path
Some checks failed
/ job (push) Failing after 9m9s
2024-07-20 19:45:52 +02:00
c5c28e22e2
readme/branches 2024-07-20 18:07:42 +02:00
87a8c4ce75
feature branch 2024-07-20 18:04:04 +02:00
2 changed files with 21 additions and 17 deletions

View file

@ -40,7 +40,10 @@ from various contexts of CA, CI and OCI / OS.
## How
| Variable | Description | Default |
|:----------------|:------------------------|:--------------------------------|
|:--------------------|:--------------------------|:--------------------------------|
| SPCD_BRANCH_RELEASE | Release deployment branch | main |
| SPCD_BRANCH_STAGING | Staging deployment branch | dev |
| SPCD_BRANCH_FEATURE | Feature deployment branch | f |
| SPCD_CA_n | Numbered CA certificate | |
| SPCD_DNS | Space separated servers | 9.9.9.9 |
| SPCD_GIT_MAIN | Main Git repository | spcd |

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"
@ -631,7 +632,7 @@ spcd_install_python_modules() {
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
case "${spcd_ipm__repository}" in
http*) spcd_ipm__url="${spcd_ipm__repository}" ;;
/*) spcd_ipm__url="${SPCD_PROJECT_ROOT}${spcd_ipm__repository}" ;;
*/*) spcd_ipm__url="${SPCD_PROJECT_ROOT}/${spcd_ipm__repository}" ;;
*) spcd_ipm__url="\
${SPCD_PROJECT_ROOT}/${SPCD_PROJECT_PATH}/${spcd_ipm__repository}" ;;
esac