push

command
v1.0.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 9 Imported by: 0

README

push

Implementation example showing how to build an agent artifact and copy it from a local in-memory store to a remote OCI registry using oras.Copy with Docker credentials.

In practice, the source and destination can be any oras.Target — another registry, an OCI layout on disk, etc.

Usage

go run ./examples/push/ <path-to-Agentfile> <registry-ref>

# Plain HTTP registry (e.g. localhost)
go run ./examples/push/ -plain-http <path-to-Agentfile> <registry-ref>

Examples

# Push to ghcr.io
go run ./examples/push/ demo/meteo/Agentfile ghcr.io/openotters/agents/meteo:1.0.0

# Push to a local registry
go run ./examples/push/ -plain-http demo/meteo/Agentfile localhost:5000/meteo:latest

Documentation

Overview

Push parses an Agentfile, builds the OCI artifact, and pushes it to a registry using oras.

Usage:

go run ./examples/push/ [-plain-http] <Agentfile> <registry-ref>

Example:

go run ./examples/push/ demo/meteo/Agentfile ghcr.io/openotters/agents/meteo:1.0.0
go run ./examples/push/ -plain-http demo/meteo/Agentfile localhost:5000/agents/meteo:1.0.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL