image: OCI labels #153

Merged
jcoffey-dev merged 2 commits from build/oci-labels into main 2026-11-25 06:09:06 +00:00
Owner

The inbuxa-webmail image carried no labels, so registries showed no description, licence or source.

  • Dockerfile (runtime stage): OCI labels for title "inbuxa Webmail", description (the webmail line from inbuxa.org), url, documentation, source (Gitea), licenses: AGPL-3.0-or-later (as package.json says), vendor Coffey Labs LLC, version (IHASMAIL_VERSION) and revision (INBUXA_REVISION).
  • Workflows: no change. Both release builds already pass those two args.

Built locally with test values. docker inspect shows all nine labels.

Follow-up commit: the label block (its args and the LABEL) now sits last in the final stage, after every RUN and COPY. A build arg declared before a RUN is part of that step's cache key, and a label value that changes every release can also make later steps miss the cache. At the end, a new version or commit never costs a cached layer. I rebuilt the image after the move and the labels are unchanged.

The inbuxa-webmail image carried no labels, so registries showed no description, licence or source. - **Dockerfile (runtime stage):** OCI labels for title "inbuxa Webmail", description (the webmail line from inbuxa.org), url, documentation, source (Gitea), `licenses: AGPL-3.0-or-later` (as package.json says), vendor Coffey Labs LLC, version (`IHASMAIL_VERSION`) and revision (`INBUXA_REVISION`). - **Workflows:** no change. Both release builds already pass those two args. Built locally with test values. `docker inspect` shows all nine labels. **Follow-up commit:** the label block (its args and the `LABEL`) now sits last in the final stage, after every `RUN` and `COPY`. A build arg declared before a `RUN` is part of that step's cache key, and a label value that changes every release can also make later steps miss the cache. At the end, a new version or commit never costs a cached layer. I rebuilt the image after the move and the labels are unchanged.
jcoffey-dev added 1 commit 2026-11-25 06:02:21 +00:00
image: OCI labels (title, description, licence, source, version, revision)
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m12s
ci / announce (pull_request) Skipped
ac9fb0355d
The published image had no labels saying what it is. Version and commit
are the build args both release builds already pass.
jcoffey-dev added 1 commit 2026-11-25 06:05:15 +00:00
image: labels last in the final stage, so they never cost a cached layer
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m13s
ci / announce (pull_request) Skipped
cf974cd224
jcoffey-dev merged commit c82eb55257 into main 2026-11-25 06:09:06 +00:00
jcoffey-dev deleted branch build/oci-labels 2026-11-25 06:09:06 +00:00
Sign in to join this conversation.