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.
- Host: GitHub
- URL: https://github.com/damdo/oci-artifacts
- Owner: damdo
- License: mit
- Created: 2022-11-16T10:39:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T13:45:01.000Z (over 3 years ago)
- Last Synced: 2025-05-09T00:55:04.403Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 3.29 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 "."
```