Compare commits

..

4 Commits

Author SHA1 Message Date
6bf38df599 Update dotfiles/ps1/ps1.sh
All checks were successful
ShellCheck / shellcheck (push) Successful in 45s
runner test
2026-01-25 16:18:03 +00:00
727f3f86d4 Update state metadata 2026-01-25 02:26:16 +00:00
979b6bc1a5 Add cron note 2026-01-25 02:24:25 +00:00
ac298ef484 . 2026-01-25 02:24:25 +00:00
4 changed files with 27 additions and 2 deletions

View File

@@ -27,6 +27,9 @@
"global_installer_wrapper": "dotfiles/install/install-global-ps1.sh",
"readme": "README.md",
"library": "library.md",
"cron_note": ".cron",
"github_workflow": ".github/workflows/shellcheck.yml",
"gitea_workflow": ".gitea/workflows/shellcheck.yml",
"palette_image": "images/bash-pallete.png",
"theme_images_dir": "images/themes",
"theme_images": {
@@ -537,6 +540,10 @@
"Git capsule prefers __git_ps1 and falls back to git symbolic-ref/short hash when git-prompt is unavailable or returns empty.",
"Hawolex git capsule enables when PS1_GIT resolves to a truthy value (1/yes/true/on).",
"Custom pack adds bold styles (radar, synthwave, noir, topo, glitch, arcticfire, acidlime).",
"Library includes emoji usage blocks per theme (sets, fixed times, time slots, rotation)."
"Library includes emoji usage blocks per theme (sets, fixed times, time slots, rotation).",
"Gitea Actions enabled in app.ini with [actions] ENABLED=true.",
"ShellCheck workflows exist for both GitHub and Gitea (.github/workflows and .gitea/workflows).",
"Self-hosted runner uses label ubuntu-latest and runs in Docker.",
"Host has daily Docker prune cron at 04:00 with 24h retention (see .cron)."
]
}

17
.cron Normal file
View File

@@ -0,0 +1,17 @@
Docker cleanup cron (host-side)
Purpose:
- Daily prune of unused images/containers/build cache for the runner host.
- Keeps bind-mounted data safe (no named volumes removed).
Schedule:
- 04:00 daily
Cron entry (root):
0 4 * * * root /usr/bin/docker image prune -af --filter "until=24h" && /usr/bin/docker container prune -f && /usr/bin/docker builder prune -af --filter "until=24h"
printf '%s\n' '0 4 * * * root /usr/bin/docker image prune -af --filter "until=24h" && /usr/bin/docker container prune -f && /usr/bin/docker builder prune -af --filter "until=24h"' | sudo tee /etc/cron.d/docker-prune
cat /etc/cron.d/docker-prune

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.sshinfo.txt
.cron

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PS1 module with Nerd Font fallback + disable switch
# Designed for bash 3.2+ (macOS) and bash 4/5 (Linux)
# Designed for bash 3.2+ (macOS) and bash 4/5 (Linux)
# Load this in interactive shells.
case "$-" in