Bot Updating Templated Files

This commit is contained in:
LinuxServer-CI 2024-12-07 20:22:11 +00:00
parent 7141d7b5c7
commit f9a2fd5adf
No known key found for this signature in database

View File

@ -43,16 +43,18 @@ jobs:
token=$(curl -sX GET \ token=$(curl -sX GET \
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fcode-server%3Apull" \ "https://ghcr.io/token?scope=repository%3Alinuxserver%2Fcode-server%3Apull" \
| jq -r '.token') | jq -r '.token')
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 "Accept: application/vnd.oci.image.index.v1+json" \
"https://ghcr.io/v2/${image}/manifests/${tag}" \ --header "Authorization: Bearer ${token}" \
| jq -r 'first(.manifests[].digest)') "https://ghcr.io/v2/${image}/manifests/${tag}")
digest=$(curl -s \ multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}")
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ digest=$(curl -s \
--header "Authorization: Bearer ${token}" \ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \ --header "Accept: application/vnd.oci.image.manifest.v1+json" \
| jq -r '.config.digest') --header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
| jq -r '.config.digest')
image_info=$(curl -sL \ image_info=$(curl -sL \
--header "Authorization: Bearer ${token}" \ --header "Authorization: Bearer ${token}" \
"https://ghcr.io/v2/${image}/blobs/${digest}") "https://ghcr.io/v2/${image}/blobs/${digest}")