Compare commits

...

10 commits

Author SHA1 Message Date
6577794018
shell check
All checks were successful
/ job (push) Successful in 8m51s
2024-07-22 12:09:10 +02:00
4e087ead78
ruff 2024-07-22 12:06:45 +02:00
82da8443ea
80/branches 2024-07-22 12:00:17 +02:00
f9e7c0f831
80 2024-07-22 11:58:37 +02:00
b291a4d684
80 2024-07-22 11:57:18 +02:00
d0ffcf2343
shfmt/bullseye 2024-07-22 11:51:19 +02:00
12ce56cdeb
workflows/main 2024-07-22 11:37:51 +02:00
a5862c4455
workflows/latest 2024-07-22 11:36:59 +02:00
faad32cc7b
workflows/before 2024-07-22 11:34:35 +02:00
3f75487808
readme/universe 2024-07-22 11:04:17 +02:00
17 changed files with 39 additions and 20 deletions

View file

@ -60,22 +60,22 @@ from various contexts of CA, CI and OCI / OS.
## Packages ## Packages
| os | s | u | python | gviz | plantuml | shch | spx | shf | ruf | | os | s | u | python | grviz | plantuml | shch | spx | shfm | ruf |
|:----------------|---|---|:------------|:-----|:----------|:-----|:----|:----|:----| |:----------------|---|---|:------------|:------|:----------|:-----|:----|:-----|:----|
| Arch 20240101 | ☑ | ☑ | 3.12 | 12.0 | 1.2023.13 | 0.10 | 7.4 | 3.8 | 0.5 | | Arch 20240101 | ☑ | ☑ | 3.12 | 12.0 | 1.2023.13 | 0.10 | 7.4 | 3.8 | 0.5 |
| Fedora 40 | ☑ | ☑ | 3.12 → 3.13 | 9.0 | 1.2024.6 | 0.9 | 7.2 | 3.7 | 0.4 | | Fedora 40 | ☑ | ☑ | 3.12 → 3.13 | 9.0 | 1.2024.6 | 0.9 | 7.2 | 3.7 | 0.4 |
| Alpine 3.20 | ☑ | ☐ | 3.12 | 9.0 | 1.2024.4 | 0.10 | 7.2 | 3.8 | 0.4 | | Alpine 3.20 | ☑ | ☐ | 3.12 | 9.0 | 1.2024.4 | 0.10 | 7.2 | 3.8 | 0.4 |
| Ubuntu Noble | ☐ | ☐ | 3.12 | 2.42 | 1.2020.2 | 0.9 | 7.2 | 3.8 | | | Ubuntu Noble | ☐ | ☐ | 3.12 | u2.42 | u1.2020.2 | u0.9 | 7.2 | u3.8 | |
| Debian Bookworm | ☐ | ☐ | 3.11 | 2.42 | 1.2020.2 | 0.9 | 5.3 | 3.6 | | | Debian Bookworm | ☐ | ☐ | 3.11 | 2.42 | 1.2020.2 | 0.9 | 5.3 | 3.6 | |
| Alma / Rocky 9 | ☑ | ☑ | 3.9 → 3.12 | 2.44 | e1.2024.6 | e0.8 | | | | | Alma / Rocky 9 | ☑ | ☑ | 3.9 → 3.12 | 2.44 | e1.2024.6 | e0.8 | | | |
| os | s | u | python | gviz | plantuml | shch | spx | shf | ruf | | os | s | u | python | grviz | plantuml | shch | spx | shfm | ruf |
|:----------------|---|---|:------------|:-----|:----------|:-----|:----|:----|:----| |:----------------|---|---|:------------|:------|:----------|:-----|:----|:-----|:----|
| Fedora 39 | ☑ | ☑ | 3.12 → 3.13 | 8.1 | 1.2024.6 | 0.9 | 6.2 | 3.5 | 0.4 | | Fedora 39 | ☑ | ☑ | 3.12 → 3.13 | 8.1 | 1.2024.6 | 0.9 | 6.2 | 3.5 | 0.4 |
| Alpine 3.19 | ☑ | ☐ | 3.11 | 9.0 | 1.2023.12 | 0.9 | 6.2 | 3.7 | | | Alpine 3.19 | ☑ | ☐ | 3.11 | 9.0 | 1.2023.12 | 0.9 | 6.2 | 3.7 | |
| Ubuntu Jammy | ☐ | ☐ | 3.10 | 2.42 | 1.2020.2 | 0.8 | 4.3 | 3.4 | | | Ubuntu Jammy | ☐ | ☐ | 3.10 | u2.42 | u1.2020.2 | u0.8 | 4.3 | u3.4 | |
| Debian Bullseye | ☐ | ☐ | 3.9 | 2.42 | 1.2020.2 | 0.7 | 3.4 | | | | Debian Bullseye | ☐ | ☐ | 3.9 | 2.42 | 1.2020.2 | 0.7 | 3.4 | | |
| Alma / Rocky 8 | ☑ | ☑ | 3.6 → 3.12 | 2.40 | e1.2024.6 | e0.6 | | | | | Alma / Rocky 8 | ☑ | ☑ | 3.6 → 3.12 | 2.40 | e1.2024.6 | e0.6 | | | |
## Tasks ## Tasks

29
spcd.sh
View file

@ -66,7 +66,8 @@ spcd_set_environment_variables() {
SPCD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")//" SPCD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")//"
[ -n "${GITHUB_TOKEN}" ] && [ -n "${GITHUB_TOKEN}" ] &&
SPCD_PROJECT_ROOT="${SPCD_PROJECT_ROOT}${GITHUB_TOKEN}@" SPCD_PROJECT_ROOT="${SPCD_PROJECT_ROOT}${GITHUB_TOKEN}@"
SPCD_PROJECT_ROOT="${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")" SPCD_PROJECT_ROOT="\
${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
else else
spcd_error_ci "GITHUB_SERVER_URL" spcd_error_ci "GITHUB_SERVER_URL"
fi fi
@ -128,7 +129,9 @@ 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_FEATURE}") ;; "${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"
@ -606,7 +609,9 @@ spcd_install_packages() {
# epel # epel
spcd_step "Install EPEL" spcd_step "Install EPEL"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") spcd_install_package "epel-release" ;; "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release"
;;
*) ;; *) ;;
esac esac
# graphviz # graphviz
@ -639,7 +644,16 @@ spcd_install_packages() {
# rsync # rsync
spcd_step "Install Rsync" spcd_step "Install Rsync"
spcd_install_package "rsync" spcd_install_package "rsync"
# shellcheck # ruff
spcd_step "Install Ruff"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALPINE}")
[ "${SPCD_OS_VERSION}" != "3.19" ] && spcd_install_package "ruff"
;;
"${SPCD_OS_ARCH}" | "${SPCD_OS_FEDORA}") spcd_install_package "ruff" ;;
*) ;;
esac
# shell check
spcd_step "Install ShellCheck" spcd_step "Install ShellCheck"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_DNF}") spcd_install_package "ShellCheck" ;; "${SPCD_PM_DNF}") spcd_install_package "ShellCheck" ;;
@ -649,12 +663,17 @@ spcd_install_packages() {
spcd_step "Install ShellFormat" spcd_step "Install ShellFormat"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;; "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;;
"${SPCD_OS_DEBIAN}")
[ "${SPCD_OS_VERSION}" != "bullseye" ] && spcd_install_package "shfmt"
;;
*) spcd_install_package "shfmt" ;; *) spcd_install_package "shfmt" ;;
esac esac
# ssh # ssh
spcd_step "Install SSH" spcd_step "Install SSH"
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}" | "${SPCD_PM_APT}") spcd_install_package "openssh-client" ;; "${SPCD_PM_APK}" | "${SPCD_PM_APT}")
spcd_install_package "openssh-client"
;;
"${SPCD_PM_DNF}") spcd_install_package "openssh-clients" ;; "${SPCD_PM_DNF}") spcd_install_package "openssh-clients" ;;
"${SPCD_PM_PACMAN}") spcd_install_package "openssh" ;; "${SPCD_PM_PACMAN}") spcd_install_package "openssh" ;;
*) ;; *) ;;