Rust library for converting and uploading Docker images to Cloudflare R2 Storage with customizable image and tag parameters.
Add the following dependency to your Cargo.toml
file:
toml
[dependencies]
oci-r2-uploader = "0.1.0"
skopeo
on your system. Follow the official installation instructions for your specific platform.
(if you are using macOS, you can install it with brew install skopeo
)```rust use ocir2uploader; use anyhow::Result;
async fn main() { let image = String::from("myimage"); let tag = String::from("mytag");
if let Err(e) = oci_r2_uploader::run(image, tag).await {
}
} ```
This project is licensed under the MIT License.