fix: parse immutable registry digest
This commit is contained in:
parent
a39208802e
commit
343b88cb98
@ -449,6 +449,8 @@ describe('production video transcode drain gate', () => {
|
||||
expect(captureId).toBeGreaterThan(0)
|
||||
expect(captureDigest).toBeGreaterThan(captureId)
|
||||
expect(script).toContain('application/vnd.oci.image.index.v1+json')
|
||||
expect(script).toContain('tolower($1) == "docker-content-digest:" { print $2 }')
|
||||
expect(script).not.toContain("awk -F ': *' 'tolower($1) == \"docker-content-digest\"")
|
||||
expect(immutableReference).toBeGreaterThan(captureDigest)
|
||||
expect(remoteCompare).toBeGreaterThan(immutableReference)
|
||||
expect(payloadCompare).toBeGreaterThan(remoteCompare)
|
||||
|
||||
@ -918,7 +918,7 @@ if [ "$SKIP_PUSH" != "1" ]; then
|
||||
-H 'Accept: application/vnd.oci.image.index.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.v2+json' \
|
||||
"http://localhost:${REGISTRY_PORT}/v2/${IMAGE_NAME}/manifests/${COMMIT_TAG}" \
|
||||
| tr -d '\r' \
|
||||
| awk -F ': *' 'tolower($1) == "docker-content-digest" { print $2 }' \
|
||||
| awk 'tolower($1) == "docker-content-digest:" { print $2 }' \
|
||||
| tail -n 1)"
|
||||
[[ "$EXPECTED_MANIFEST_DIGEST" =~ ^sha256:[0-9a-f]{64}$ ]] || fail "Registry did not return one immutable manifest digest for the exact commit tag"
|
||||
REGISTRY_COMMIT="${BUILD_SERVER_IP}:${REGISTRY_PORT}/${IMAGE_NAME}@${EXPECTED_MANIFEST_DIGEST}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user