environment

This commit is contained in:
Marc Beninca 2024-08-26 00:30:20 +02:00
parent a88c031ec3
commit de4c334582
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -421,12 +421,12 @@ SPCD_PM_ZYPPER="zypper"
SPCD_PYTHON_VENV="/opt/venv" SPCD_PYTHON_VENV="/opt/venv"
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin" SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
# ╭───────┬───── # ╭───────┬─────────────
# │ steps │ env # │ steps │ environment
# ╰───────┴───── # ╰───────┴─────────────
spcd_set_environment_variables() { spcd_environment_set_variables() {
spcd_step "Set environment variables" spcd_step "Set variables"
# check script first # check script first
[ -n "${SPCD}" ] || spcd_error_ci "SPCD" [ -n "${SPCD}" ] || spcd_error_ci "SPCD"
# continuous integration / github → gitea → forgejo # continuous integration / github → gitea → forgejo
@ -906,8 +906,8 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
spcd_os_printenv "SPCD_CA" "SPCD_DL" spcd_os_printenv "SPCD_CA" "SPCD_DL"
} }
spcd_list_working_directory() { spcd_environment_list_workspace() {
spcd_step "List working directory" spcd_step "List workspace"
spcd_lwd__path="$(realpath .)" spcd_lwd__path="$(realpath .)"
spcd_os_ls "${spcd_lwd__path}" spcd_os_ls "${spcd_lwd__path}"
} }
@ -1250,9 +1250,10 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
# ╰──────╯ # ╰──────╯
spcd_main() { spcd_main() {
# env spcd_step_in "Environment"
spcd_set_environment_variables spcd_environment_set_variables
spcd_list_working_directory spcd_environment_list_workspace
spcd_step_out
# pkg # pkg
spcd_set_packages_repositories spcd_set_packages_repositories
spcd_set_packages_configuration spcd_set_packages_configuration