feat: filter RSSHub image tags by chromium-bundled- prefix (#8)

Update tag matching logic to only accept chromium-bundled-<hash> format instead of plain commit hash tags. This ensures consistent deployment of Chromium-bundled RSSHub images.
This commit is contained in:
DIYgod 2026-01-22 10:32:55 +08:00 committed by GitHub
parent 2777f8443d
commit f0236fa776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ jobs:
# Get tags list from ghcr.io
TAGS=$(curl -s "https://ghcr.io/v2/diygod/rsshub/tags/list" -H "Authorization: Bearer $TOKEN" | jq -r '.tags[]')
# Filter for commit hash tags (40 hex chars, no prefix) and get the last one
# Tags appear to be returned in chronological order, so we reverse and get first match
LATEST_TAG=$(echo "$TAGS" | grep -E '^[a-f0-9]{40}$' | tail -1)
# Filter for chromium-bundled- prefixed tags (chromium-bundled-<hash>)
# Tags appear to be returned in chronological order, so we get the last one
LATEST_TAG=$(echo "$TAGS" | grep -E '^chromium-bundled-[a-f0-9]{40}$' | tail -1)
if [ -z "$LATEST_TAG" ]; then
echo "Failed to get latest tag"