Add service versions panel, version auto-tracking, Fail2Ban sidebar, streaming service switch

- .github/workflows/version-bump.yml: auto-increment patch version on push to main/beta
- admin/index.php: show version under logo from VERSION file
- system.php: service-versions endpoint (catalog of 22 services with version/description/status)
- admin.js: updates page shows Installed Services table with current/latest/status/description
- admin.js: loadServiceVersions() lazy-loaded after page render via setTimeout
- admin/index.php: separate Fail2Ban sidebar entry (was merged into Firewall label)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 16:23:51 +00:00
parent 7aa33defa2
commit 2af9e34fb0
4 changed files with 166 additions and 2 deletions
+50
View File
@@ -0,0 +1,50 @@
name: Auto Version Bump
on:
push:
branches:
- main
- beta
paths-ignore:
- 'VERSION'
- '.github/**'
permissions:
contents: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bump version
id: bump
run: |
BRANCH="${{ github.ref_name }}"
CURRENT=$(cat VERSION)
IFS='.' read -r MAJOR MINOR PATCH <<< "${CURRENT%%-*}"
PATCH=${PATCH:-0}
if [ "$BRANCH" = "main" ]; then
NEW_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))"
else
# beta branch: append -beta.N
BETA_NUM=$(echo "$CURRENT" | grep -oP '(?<=beta\.)\d+' || echo "0")
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}-beta.$((BETA_NUM + 1))"
fi
echo "$NEW_VERSION" > VERSION
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "Bumped $CURRENT → $NEW_VERSION"
- name: Commit version
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add VERSION
git commit -m "chore: bump version to ${{ steps.bump.outputs.version }} [skip ci]"
git push