|
|
@ -4,7 +4,6 @@ export def get_image_digest [image: string, tag: string] {
|
|
|
|
| append [Accept "application/vnd.docker.distribution.manifest.v2+json"]
|
|
|
|
| append [Accept "application/vnd.docker.distribution.manifest.v2+json"]
|
|
|
|
| append [Authorization $"Bearer ($token)"]
|
|
|
|
| append [Authorization $"Bearer ($token)"]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
print $headers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
( http get -H $headers $"https://registry.hub.docker.com/v2/($image)/manifests/($tag)"
|
|
|
|
( http get -H $headers $"https://registry.hub.docker.com/v2/($image)/manifests/($tag)"
|
|
|
|
| from json
|
|
|
|
| from json
|
|
|
|