Plugin: publisher-oci
Publishes release artifacts to OCI registries with oras push.
Installation
Section titled “Installation”semrel plugin install @semrel/ocisemrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.
Configuration
Section titled “Configuration”version: 1plugins: - uses: @semrel/oci args: ref: ghcr.io/semrels/myapp:{version} artifacts: dist/myapp-linux-amd64,dist/myapp-linux-arm64Environment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_REF | yes | — | OCI reference. Supports {version} token. |
SEMREL_PLUGIN_ARTIFACTS | no | — | CSV list of artifact paths. |
SEMREL_PLUGIN_ARTIFACTS_JSON | no | — | JSON array of artifact paths. |
SEMREL_PLUGIN_ARTIFACT | no | — | Single artifact path fallback. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”For a 1.4.0 release and ref: ghcr.io/semrels/myapp:{version}, the plugin resolves the destination to ghcr.io/semrels/myapp:1.4.0 and uploads all configured artifacts.
Requirements
Section titled “Requirements”orasmust be installed and available onPATH.