mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 06:37:43 +02:00
Fix tag selection logic in release workflow
Replace alphabetical tag selection with version-aware filtering to properly identify the latest nbxyz version tag instead of selecting SHA hashes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
83032a815d
commit
85f53d046a
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -54,7 +54,7 @@ jobs:
|
||||
TAG=$(curl -s --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
--header "Authorization: Bearer ${TOKEN}" \
|
||||
"https://ghcr.io/v2/${IMAGE}/tags/list?n=1000" \
|
||||
| jq -r '.tags[-1]')
|
||||
| jq -r '.tags[] | select(test("^[0-9]+\\.[0-9]+\\.[0-9]+-nbxyz[0-9]+$"))' | sort -V | tail -1)
|
||||
echo LATEST_TAG: $TAG
|
||||
MULTIDIGEST=$(curl -s \
|
||||
--header "Accept: application/vnd.oci.image.index.v1+json" \
|
||||
|
Loading…
Reference in New Issue
Block a user