mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 06:37:43 +02:00
Grab latest tag
This commit is contained in:
parent
b9c8be37d7
commit
fcfcbf034c
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -47,11 +47,14 @@ jobs:
|
||||
id: version_check
|
||||
continue-on-error: true
|
||||
run: |
|
||||
tag=latest
|
||||
IMAGE=netbootxyz/netbootxyz
|
||||
TOKEN=$(curl -sX GET \
|
||||
"https://ghcr.io/token?scope=repository%3Anetbootxyz%2Fnetbootxyz%3Apull" \
|
||||
| jq -r '.token')
|
||||
TAG=$(curl -s --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
--header "Authorization: Bearer ${TOKEN}" \
|
||||
"https://ghcr.io/v2/${IMAGE}/tags/list" \
|
||||
| jq -r '.tags[-1]')
|
||||
MULTIDIGEST=$(curl -s \
|
||||
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
--header "Authorization: Bearer ${TOKEN}" \
|
||||
|
Loading…
Reference in New Issue
Block a user