mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-09 23:57:24 +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
|
id: version_check
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
tag=latest
|
|
||||||
IMAGE=netbootxyz/netbootxyz
|
IMAGE=netbootxyz/netbootxyz
|
||||||
TOKEN=$(curl -sX GET \
|
TOKEN=$(curl -sX GET \
|
||||||
"https://ghcr.io/token?scope=repository%3Anetbootxyz%2Fnetbootxyz%3Apull" \
|
"https://ghcr.io/token?scope=repository%3Anetbootxyz%2Fnetbootxyz%3Apull" \
|
||||||
| jq -r '.token')
|
| 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 \
|
MULTIDIGEST=$(curl -s \
|
||||||
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||||
--header "Authorization: Bearer ${TOKEN}" \
|
--header "Authorization: Bearer ${TOKEN}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user