Skip to content

Plugin: publisher-oci

Publishes release artifacts to OCI registries with oras push.

Terminal window
semrel plugin install @semrel/oci

semrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.

version: 1
plugins:
- uses: @semrel/oci
args:
ref: ghcr.io/semrels/myapp:{version}
artifacts: dist/myapp-linux-amd64,dist/myapp-linux-arm64
NameRequiredDefaultDescription
SEMREL_PLUGIN_REFyesOCI reference. Supports {version} token.
SEMREL_PLUGIN_ARTIFACTSnoCSV list of artifact paths.
SEMREL_PLUGIN_ARTIFACTS_JSONnoJSON array of artifact paths.
SEMREL_PLUGIN_ARTIFACTnoSingle artifact path fallback.
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_TAG_NAME
  • SEMREL_DRY_RUN

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.

  • oras must be installed and available on PATH.