An open API service indexing awesome lists of open source software.

https://github.com/damdo/oci-artifacts

Working Go examples on how to push and pull any artifact (file) to/from OCI registries.
https://github.com/damdo/oci-artifacts

Last synced: about 1 year ago
JSON representation

Working Go examples on how to push and pull any artifact (file) to/from OCI registries.

Awesome Lists containing this project

README

          

## oci-artifacts
Working Go examples on how to push and pull any artifact (file) to/from OCI registries ("container registries"),
using the [ORAS project library](https://oras.land/).

Check out [`push`](./push.go) and [`pull`](./pull.go).

**Disclaimer**:
This only works with OCI registries that support OCI artifacts.
You can find a list of them [here](https://oras.land/implementors/).

Usage:
```
go run . --files "data/dock.jpg,data/ship.jpg" --image "REGISTRY/USER/REPO:TAG" \
--username "" --password "" --output "."
```