2024-06-27 11:54:46 +00:00
|
|
|
# Shell to Python Continuous Deployment
|
2024-04-29 11:04:36 +00:00
|
|
|
|
2024-06-21 11:29:18 +00:00
|
|
|
Get a common set of Python CI & CD commands \
|
2024-06-14 08:02:31 +00:00
|
|
|
from various contexts of CA, CI and OCI / OS.
|
2024-05-03 13:11:58 +00:00
|
|
|
|
2024-04-29 11:04:36 +00:00
|
|
|
## Features
|
|
|
|
|
2024-06-25 12:47:42 +00:00
|
|
|
* Certification Authority certificates
|
2024-05-05 20:20:49 +00:00
|
|
|
* [X] custom
|
|
|
|
* [X] known
|
2024-06-25 12:47:42 +00:00
|
|
|
* Continuous Integration platforms
|
2024-06-14 08:02:31 +00:00
|
|
|
* [X] ForgeJo
|
2024-06-17 19:44:22 +00:00
|
|
|
* [X] Gitea
|
|
|
|
* [X] GitHub
|
2024-05-05 20:20:49 +00:00
|
|
|
* [X] GitLab
|
|
|
|
* [ ] SourceHut
|
2024-06-25 12:47:42 +00:00
|
|
|
* Operating Systems
|
2024-07-21 11:24:53 +00:00
|
|
|
* [X] Alma
|
2024-05-05 20:20:49 +00:00
|
|
|
* [X] 9
|
2024-07-12 21:24:50 +00:00
|
|
|
* [X] 8
|
|
|
|
* [X] Alpine
|
2024-07-21 11:24:53 +00:00
|
|
|
* [X] 3.20
|
|
|
|
* [X] 3.19
|
|
|
|
* [X] Arch
|
2024-05-10 20:33:13 +00:00
|
|
|
* [X] 20240101
|
2024-07-12 21:24:50 +00:00
|
|
|
* [ ] 20231112
|
2024-06-25 12:47:42 +00:00
|
|
|
* [X] Debian
|
2024-07-21 11:24:53 +00:00
|
|
|
* [X] Bookworm (12)
|
|
|
|
* [ ] Bullseye (11)
|
2024-05-10 20:33:13 +00:00
|
|
|
* [X] Fedora → Python 3.12
|
|
|
|
* [X] 40
|
2024-07-12 21:24:50 +00:00
|
|
|
* [X] 39
|
2024-07-21 11:24:53 +00:00
|
|
|
* [X] Rocky
|
2024-05-05 20:20:49 +00:00
|
|
|
* [X] 9
|
2024-07-12 21:24:50 +00:00
|
|
|
* [X] 8
|
2024-05-05 20:20:49 +00:00
|
|
|
* [X] Ubuntu
|
2024-07-21 11:24:53 +00:00
|
|
|
* [X] Noble (24.04)
|
|
|
|
* [X] Jammy (22.04)
|
2024-04-29 11:04:36 +00:00
|
|
|
|
2024-05-02 08:58:02 +00:00
|
|
|
## How
|
|
|
|
|
2024-07-20 16:07:42 +00:00
|
|
|
| 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 |
|
|
|
|
| SPCD_GIT_ROOT | Root Git repository | rwx |
|
|
|
|
| SPCD_SSH_HOSTS | domain.tld ssh-type pub | |
|
|
|
|
| SPCD_SSH_KEY | SSH private key | |
|
|
|
|
| SPCD_URL_ALMA | Alma repository URL | https://repo.almalinux.org |
|
|
|
|
| SPCD_URL_ALPINE | Alpine repository URL | https://dl-cdn.alpinelinux.org |
|
|
|
|
| SPCD_URL_ARCH | Arch repository URL | https://geo.mirror.pkgbuild.com |
|
|
|
|
| SPCD_URL_DEBIAN | Debian repository URL | https://deb.debian.org |
|
|
|
|
| SPCD_URL_FEDORA | Fedora repository URL | https://rpmfind.net |
|
|
|
|
| SPCD_URL_ROCKY | Rocky repository URL | https://dl.rockylinux.org |
|
|
|
|
| SPCD_URL_UBUNTU | Ubuntu repository URL | https://ubuntu.mirrors.ovh.net |
|
2024-05-02 08:58:02 +00:00
|
|
|
|
2024-05-10 20:25:17 +00:00
|
|
|
## HTTPS & Python
|
|
|
|
|
2024-07-21 11:24:53 +00:00
|
|
|
| OS image | crt | upd | py | py | sc |
|
|
|
|
|:----------------|-----|-----|:-----|:-----|----|
|
|
|
|
| Alpine 3.20 | ☑ | ☐ | | 3.12 | |
|
|
|
|
| Alpine 3.19 | ☑ | ☐ | | 3.11 | |
|
|
|
|
| Arch 20240101 | ☑ | ☑ | | 3.12 | |
|
2024-07-21 11:30:49 +00:00
|
|
|
| Arch 20231112 | ☑ | ☑ | | 3.12 | |
|
2024-07-21 11:24:53 +00:00
|
|
|
| Debian Bookworm | ☐ | ☐ | | 3.11 | |
|
|
|
|
| Debian Bullseye | ☐ | ☐ | | 3.9 | |
|
2024-07-21 11:28:33 +00:00
|
|
|
| Ubuntu Noble | ☐ | ☐ | | 3.12 | |
|
|
|
|
| Ubuntu Jammy | ☐ | ☐ | | 3.10 | |
|
2024-07-21 11:24:53 +00:00
|
|
|
| Fedora 40 | ☑ | ☑ | 3.12 | 3.12 | |
|
|
|
|
| Fedora 39 | ☑ | ☑ | 3.12 | 3.12 | |
|
2024-07-21 11:28:33 +00:00
|
|
|
| Alma 9 | ☑ | ☑ | 3.9 | 3.11 | |
|
2024-07-21 11:24:53 +00:00
|
|
|
| Rocky 9 | ☑ | ☑ | 3.9 | 3.11 | |
|
2024-07-21 11:28:33 +00:00
|
|
|
| Alma 8 | ☑ | ☑ | | 3.11 | |
|
|
|
|
| Rocky 8 | ☑ | ☑ | | 3.11 | |
|
2024-05-10 20:25:17 +00:00
|
|
|
|
2024-04-29 11:04:36 +00:00
|
|
|
## Tasks
|
|
|
|
|
2024-06-14 07:55:16 +00:00
|
|
|
* relay environment module name
|
|
|
|
* write tests
|
2024-06-14 07:16:28 +00:00
|
|
|
|
|
|
|
### .py
|
|
|
|
|
2024-06-14 07:55:16 +00:00
|
|
|
* detect ssh private key type
|
|
|
|
* implement project repository cloning
|
|
|
|
* install
|
2024-06-14 09:59:10 +00:00
|
|
|
* epel
|
2024-07-17 09:29:24 +00:00
|
|
|
* plantuml
|
2024-06-14 09:59:10 +00:00
|
|
|
* shellcheck
|
2024-07-17 09:42:08 +00:00
|
|
|
* graphviz
|
2024-06-14 07:55:16 +00:00
|
|
|
* openssh
|
2024-06-14 09:59:10 +00:00
|
|
|
* pip
|
|
|
|
* ruff
|
2024-06-14 07:55:16 +00:00
|
|
|
* rsync
|
2024-06-25 12:47:42 +00:00
|
|
|
* shfmt
|
2024-06-14 09:59:10 +00:00
|
|
|
* lint
|
|
|
|
* .py
|
|
|
|
* .sh
|
2024-06-14 07:55:16 +00:00
|
|
|
|
2024-06-14 07:16:28 +00:00
|
|
|
### .sh
|
2024-06-14 07:55:16 +00:00
|
|
|
|
|
|
|
* support opensuse
|