github kimdre/doco-cd v0.137.0

one hour ago

What's Changed

Note

Docker Compose was updated to v5.8.0. Compose now understands the top-level jobs: key and registers these jobs with the Docker Engine. The deployment fails if the Engine cannot run them. doco-cd schedules jobs with its own labels (cd.doco.job.*), so it removes native jobs: before deploying and logs a warning that lists the skipped jobs.

Custom notification titles

Some Apprise services use the title for more than a heading. For example, Zulip uses it as the topic, so a fixed title puts every stack in the same topic.

The new APPRISE_NOTIFY_TITLE_TEMPLATE setting (and APPRISE_NOTIFY_TITLE_TEMPLATE_FILE) renders the title from a Go text/template. It works like APPRISE_NOTIFY_BODY_TEMPLATE.

APPRISE_NOTIFY_TITLE_TEMPLATE: '{{ if .Stack }}{{ .Stack }}{{ else }}{{ .DefaultTitle }}{{ end }}'
  • The template replaces the whole title, including the emoji and the [R] marker.
  • It has the same fields as the body template. {{ .DefaultTitle }} renders the built-in title. It is available in both templates.
  • doco-cd validates the template at startup. If rendering fails at runtime, doco-cd sends the built-in title.
  • {{ .Stack }} alone gives an empty title for events without a stack (for example poll failures). Use the fallback above to avoid this.
  • The new-version announcement keeps its built-in title and body.

See Custom notification title in the wiki.

Safer handling of Compose native jobs

Compose v5.8.0 handles the top-level jobs: key, which doco-cd ignored before. This could break existing stacks:

  • On Docker Engines without jobs support (older than 29.10.0, or org.mobyproject.jobs.v0 disabled), Compose rejected stacks that contain jobs:.
  • On Engines with the extension enabled, the Engine ran jobs outside of doco-cd. Their containers carry the project and service labels and caused false drift.

doco-cd now removes native jobs: from the project before Compose sees them and logs a warning that lists the skipped jobs. Containers with the com.docker.job.id label are excluded from service inventories, so they no longer cause drift. Use doco-cd scheduled jobs instead.

Clearer errors for encrypted Compose includes

When a file loaded through include: is still SOPS-encrypted, Compose fails with additional properties 'sops' not allowed. doco-cd now names the encrypted file and tells you the cause:

  • SOPS is not configured.
  • The data key could not be retrieved.
  • Decryption failed for another reason.
  • The file can be decrypted now, but was not decrypted when it was fetched.

The original Compose error stays in the error chain. See the encryption docs.

All changes

✨ Features

🌟 Improvements

  • fix(docker): guard against Compose native jobs by @kimdre in #2226
  • fix(docker): explain encrypted Compose include errors by @kimdre in #2232

📦 Dependencies

  • fix(deps): update module github.com/moby/buildkit to v0.35.1 by @renovate[bot] in #2221
  • chore(deps): update dependency markdown-exec to v1.14.0 by @renovate[bot] in #2222
  • fix(deps): update module golang.org/x/net to v0.63.0 by @renovate[bot] in #2225
  • chore(deps): update module golang.org/x/tools to v0.53.0 by @renovate[bot] in #2223
  • fix(deps): update module github.com/docker/compose/v5 to v5.8.0 by @renovate[bot] in #2224
  • chore(deps): update gcr.io/distroless/base-debian13 docker digest to 8bf71f4 by @renovate[bot] in #2228
  • fix(deps): update module github.com/sigstore/sigstore to v1.11.4 by @renovate[bot] in #2227

New Contributors

Full Changelog: v0.136.0...v0.137.0

Don't miss a new doco-cd release

NewReleases is sending notifications on new releases.