Skip to content

Add OCI standard version and drop "v" from image - #738

Draft
taylordowns2000 wants to merge 1 commit into
mainfrom
oci-label-and-no-v-version
Draft

taylordowns2000 wants to merge 1 commit into
mainfrom
oci-label-and-no-v-version

Conversation

@taylordowns2000

Copy link
Copy Markdown
Member

Aligning across OpenFn/lightning#5265, OpenFn/kit#1604, https://github.com/OpenFn/deployment/pull/560

Changes

  • Image tag: images are now tagged with the bare version, e.g. openfn/apollo:3.5.2 instead of openfn/apollo:v3.5.2. Tags come from docker/metadata-action@v5 using type=semver, as in kit.
  • OCI labels: the build now passes the standard org.opencontainers.image.* labels from the metadata step.
  • Version check: after stripping the @openfn/apollo@ prefix from the tag, the version must look like semver (e.g. 3.5.2 or 1.4.0-pre.0). Otherwise the job fails with a clear error instead of pushing a badly named tag.
  • :latest rule kept: :latest still only moves for final releases, never for pre-releases like 1.4.0-pre.0. type=semver does this by default.

A more detailed breakdown of the changes, including motivations (if not provided
in the issue).

AI Usage

Please disclose whether you've used AI in this work (it's cool, we just want to
know!):

  • Yes, I have used AI
  • No, I have not used AI

You can read more details in our
Responsible AI Policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant