Azure / acr-builder

Azure Container Registry Build Runner
MIT License
38 stars 35 forks source link

Support downloading OCI Artifact manifest #627

Closed chloeyin closed 1 year ago

chloeyin commented 1 year ago

Purpose of the PR Bump up orase

Fixes #626

./acb download oci://yzhregistry.azurecr.io/dockerfile:1.0 --credential $cred ...
Pulling from yzhregistry.azurecr.io/dockerfile:1.0 and saving to temp...
Pulled from yzhregistry.azurecr.io/dockerfile:1.0 with digest sha256:a607425d0fb2a547bdf7217583b748971d6d81bbc9b47490fdc95e26c7c7bb8b
2022/12/07 17:49:21 Download complete, working directory: temp
2022/12/07 17:49:21 CommitID and Branch information: {"commitID":"28ef05e9dce09f3769fa9e08e9dbc699567b3f0e","branch":"main"}

There is an oras api breaking change in scan/context.go. I updated the code after some study.