step__
Some checks failed
/ alpine (push) Successful in 1m46s
/ archlinux (push) Successful in 2m45s
/ opensuse (push) Failing after 39s
/ ubuntu (push) Has been skipped
/ almalinux (push) Has been skipped
/ fedora (push) Has been skipped
/ rockylinux (push) Has been skipped
/ debian (push) Has been skipped

This commit is contained in:
Marc Beninca 2024-08-27 13:04:09 +02:00
parent 349da5c3a8
commit e3a9b87125
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -366,7 +366,7 @@ SPCD_PM_ZYPPER="zypper"
# │ step │ environment │ # │ step │ environment │
# ╰──────┴─────────────╯ # ╰──────┴─────────────╯
spcd_environment_set_variables() { spcd_step__environment_set_variables() {
spcd_step "Set variables" spcd_step "Set variables"
# check script first # check script first
[ -n "${SPCD}" ] || spcd_error_ci "SPCD" [ -n "${SPCD}" ] || spcd_error_ci "SPCD"
@ -705,7 +705,7 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
spcd_os_printenv "SPCD_DL" spcd_os_printenv "SPCD_DL"
} }
spcd_environment_list_workspace() { spcd_step__environment_list_workspace() {
spcd_step "List workspace" spcd_step "List workspace"
spcd_lwd__path="$(realpath .)" spcd_lwd__path="$(realpath .)"
spcd_os_ls "${spcd_lwd__path}" spcd_os_ls "${spcd_lwd__path}"
@ -804,7 +804,7 @@ spcd_query_package() {
# │ step │ dns │ # │ step │ dns │
# ╰──────┴─────╯ # ╰──────┴─────╯
spcd_dns() { spcd_step__dns() {
spcd_step "DNS" spcd_step "DNS"
while true; do while true; do
spcd_sdr__index=$((spcd_sdr__index + 1)) spcd_sdr__index=$((spcd_sdr__index + 1))
@ -821,7 +821,7 @@ nameserver ${spcd_sdr__value}
# │ step │ packages │ # │ step │ packages │
# ╰──────┴──────────╯ # ╰──────┴──────────╯
spcd_packages_set_repositories() { spcd_step__packages_set_repositories() {
spcd_step "Set repositories" spcd_step "Set repositories"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}") "${SPCD_OS_ALMA}")
@ -888,7 +888,7 @@ deb ${SPCD_URL_CHOSEN} ${SPCD_OS_VERSION}-security main universe
esac esac
} }
spcd_packages_set_configuration() { spcd_step__packages_set_configuration() {
spcd_step "Set configuration" spcd_step "Set configuration"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_DNF}") "${SPCD_PM_DNF}")
@ -926,7 +926,7 @@ Dir::Etc::SourceParts \"\";
esac esac
} }
spcd_packages_trust_https() { spcd_step__packages_trust_https() {
spcd_step "Trust HTTPS" spcd_step "Trust HTTPS"
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
spcd_pth__path="$(spcd_https_path)" spcd_pth__path="$(spcd_https_path)"
@ -954,7 +954,7 @@ SSLVerify = No
fi fi
} }
spcd_packages_update_catalog() { spcd_step__packages_update_catalog() {
spcd_step "Update catalog" spcd_step "Update catalog"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") apk update ;; "${SPCD_PM_APK}") apk update ;;
@ -966,7 +966,7 @@ spcd_packages_update_catalog() {
esac esac
} }
spcd_packages_install_tools() { spcd_step__packages_install_tools() {
spcd_step "Install tools" spcd_step "Install tools"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APT}") spcd_install_package "apt-utils" ;; "${SPCD_PM_APT}") spcd_install_package "apt-utils" ;;
@ -978,12 +978,12 @@ spcd_packages_install_tools() {
# │ step │ ca │ # │ step │ ca │
# ╰──────┴────╯ # ╰──────┴────╯
spcd_ca_install_package() { spcd_step__ca_install_package() {
spcd_step "Install package" spcd_step "Install package"
spcd_install_package "ca-certificates" spcd_install_package "ca-certificates"
} }
spcd_ca_write_certificates() { spcd_step__ca_write_certificates() {
spcd_step "Write certificates" spcd_step "Write certificates"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}") "${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}")
@ -1012,7 +1012,7 @@ spcd_ca_write_certificates() {
done done
} }
spcd_ca_update_certificates() { spcd_step__ca_update_certificates() {
spcd_step "Update certificates" spcd_step "Update certificates"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ARCH}" | \ "${SPCD_OS_ARCH}" | \
@ -1035,13 +1035,13 @@ spcd_ca_update_certificates() {
# │ step │ packages │ # │ step │ packages │
# ╰──────┴──────────╯ # ╰──────┴──────────╯
spcd_packages_verify_https() { spcd_step__packages_verify_https() {
spcd_step "Verify HTTPS" spcd_step "Verify HTTPS"
spcd_pvh__path="$(spcd_https_path)" spcd_pvh__path="$(spcd_https_path)"
[ -n "${spcd_pvh__path}" ] && spcd_os_rm "${spcd_pvh__path}" [ -n "${spcd_pvh__path}" ] && spcd_os_rm "${spcd_pvh__path}"
} }
spcd_packages_upgrade_system() { spcd_step__packages_upgrade_system() {
spcd_step "Upgrade system" spcd_step "Upgrade system"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") apk upgrade ;; "${SPCD_PM_APK}") apk upgrade ;;
@ -1053,12 +1053,12 @@ spcd_packages_upgrade_system() {
esac esac
} }
spcd_packages_install_dos2unix() { spcd_step__packages_install_dos2unix() {
spcd_step "Install dos2unix" spcd_step "Install dos2unix"
spcd_install_package "dos2unix" spcd_install_package "dos2unix"
} }
spcd_packages_install_git() { spcd_step__packages_install_git() {
spcd_step "Install Git" spcd_step "Install Git"
spcd_install_package "git" spcd_install_package "git"
} }
@ -1067,7 +1067,7 @@ spcd_packages_install_git() {
# │ step │ python │ # │ step │ python │
# ╰──────┴────────╯ # ╰──────┴────────╯
spcd_python_install() { spcd_step__python_install() {
spcd_step "Install package" spcd_step "Install package"
spcd_install_package "${SPCD_PYTHON_PACKAGE}" spcd_install_package "${SPCD_PYTHON_PACKAGE}"
spcd_step "Link alias to command" spcd_step "Link alias to command"
@ -1094,7 +1094,7 @@ index-url = ${SPCD_URL_PYTHON}
spcd_step_out spcd_step_out
} }
spcd_python_modules() { spcd_step__python_modules() {
spcd_step_in "Modules" spcd_step_in "Modules"
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}" spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
spcd_step "List" spcd_step "List"
@ -1119,7 +1119,7 @@ spcd_python_modules() {
spcd_step_out spcd_step_out
} }
spcd_install_packages() { spcd_step__install_packages() {
spcd_step_in "OS packages" spcd_step_in "OS packages"
# epel # epel
spcd_step "EPEL" spcd_step "EPEL"
@ -1179,7 +1179,7 @@ spcd_install_packages() {
spcd_step_out spcd_step_out
} }
spcd_python_write_module() { spcd_step__python_write_module() {
spcd_step "Write module" spcd_step "Write module"
for spcd_wpm__variable in \ for spcd_wpm__variable in \
OS_ID OS_VERSION \ OS_ID OS_VERSION \
@ -1199,7 +1199,7 @@ SPCD_STEP = ${spcd_wpm__index}
done done
} }
spcd_python_switch() { spcd_step__python_switch() {
spcd_step "Switch" spcd_step "Switch"
spcd_stp__name="$(basename "${SPCD_GIT_MAIN}")" spcd_stp__name="$(basename "${SPCD_GIT_MAIN}")"
spcd_stp__path="$(realpath "${0}")" spcd_stp__path="$(realpath "${0}")"
@ -1217,40 +1217,40 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
spcd_main() { spcd_main() {
# environment # environment
spcd_step_in "Environment" spcd_step_in "Environment"
spcd_environment_set_variables spcd_step__environment_set_variables
spcd_environment_list_workspace spcd_step__environment_list_workspace
spcd_step_out spcd_step_out
# dns # dns
spcd_dns spcd_step__dns
# packages # packages
spcd_step_in "Packages" spcd_step_in "Packages"
spcd_packages_set_repositories spcd_step__packages_set_repositories
spcd_packages_set_configuration spcd_step__packages_set_configuration
spcd_packages_trust_https spcd_step__packages_trust_https
spcd_packages_update_catalog spcd_step__packages_update_catalog
spcd_packages_install_tools spcd_step__packages_install_tools
spcd_step_out spcd_step_out
# ca # ca
spcd_step_in "CA" spcd_step_in "CA"
spcd_ca_install_package spcd_step__ca_install_package
spcd_ca_write_certificates spcd_step__ca_write_certificates
spcd_ca_update_certificates spcd_step__ca_update_certificates
spcd_step_out spcd_step_out
# packages # packages
spcd_step_in "Packages" spcd_step_in "Packages"
spcd_packages_verify_https spcd_step__packages_verify_https
spcd_packages_update_catalog spcd_step__packages_update_catalog
spcd_packages_upgrade_system spcd_step__packages_upgrade_system
spcd_packages_install_dos2unix spcd_step__packages_install_dos2unix
spcd_packages_install_git spcd_step__packages_install_git
spcd_step_out spcd_step_out
# python # python
spcd_step_in "Python" spcd_step_in "Python"
spcd_python_install spcd_step__python_install
spcd_python_modules spcd_step__python_modules
spcd_install_packages spcd_step__install_packages
spcd_python_write_module spcd_step__python_write_module
spcd_python_switch spcd_step__python_switch
} }
spcd_main spcd_main