Compare commits
3 commits
b2a882079a
...
dec6cf211a
Author | SHA1 | Date | |
---|---|---|---|
dec6cf211a | |||
c5c28e22e2 | |||
87a8c4ce75 |
2 changed files with 21 additions and 17 deletions
|
@ -40,7 +40,10 @@ from various contexts of CA, CI and OCI / OS.
|
||||||
## How
|
## How
|
||||||
|
|
||||||
| Variable | Description | Default |
|
| 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_CA_n | Numbered CA certificate | |
|
||||||
| SPCD_DNS | Space separated servers | 9.9.9.9 |
|
| SPCD_DNS | Space separated servers | 9.9.9.9 |
|
||||||
| SPCD_GIT_MAIN | Main Git repository | spcd |
|
| SPCD_GIT_MAIN | Main Git repository | spcd |
|
||||||
|
|
5
spcd.sh
5
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"
|
||||||
|
@ -631,7 +632,7 @@ spcd_install_python_modules() {
|
||||||
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
||||||
case "${spcd_ipm__repository}" in
|
case "${spcd_ipm__repository}" in
|
||||||
http*) spcd_ipm__url="${spcd_ipm__repository}" ;;
|
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_ipm__url="\
|
||||||
${SPCD_PROJECT_ROOT}/${SPCD_PROJECT_PATH}/${spcd_ipm__repository}" ;;
|
${SPCD_PROJECT_ROOT}/${SPCD_PROJECT_PATH}/${spcd_ipm__repository}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue