github kimdre/doco-cd v0.136.0

one hour ago

What's Changed

Note

Compose services that use environment-backed secrets or configs, or inline config content, are recreated once after the upgrade because they now carry a content digest label.

Warning

The OpenAPI operation IDs for project and stack actions changed. If you use a generated API client, regenerate it.

Compose services restart when secret or config values change

Standalone Compose did not notice when the value of an environment-backed secret or config, or the content of an inline config, changed. The container kept running with the old value.

doco-cd now stores a per-service SHA-256 digest label (cd.doco.deployment.content.sha). When a value changes, doco-cd detects the change and recreates the services that use it.

  • The digest respects recreate.ignore.
  • Services that are ignored or unrelated keep their existing containers.
  • Swarm behavior is unchanged.
  • The digest is visible with docker inspect, so low-entropy values can be guessed offline.

Scheduled jobs no longer block polls of other stacks

A long-running scheduled job could hold a stack lock and stop later polls from running, even for unrelated stacks.

  • Polls and reconciliation now skip a busy stack and log who holds the lock. A later poll can deploy the skipped revision. Until then, reconciliation keeps the last known deployed revision.
  • Webhook deployments wait for the lock without taking a deployment slot. Runtime migration and deployment use the same lock.
  • Compose drift checks ignore one-off job containers, because they are not service replicas.

Dedicated OpenAPI routes for project and stack actions

Compose projects and Swarm stacks were each described by one generic OpenAPI path, even though they support several actions. Each action now has its own route with a description, operation ID, and parameters. For example, replicas is documented as required for scale.

  • Existing URLs for supported actions are unchanged.
  • Unknown actions now return 404 Not Found.
  • Operation IDs changed.

All changes

🌟 Improvements

  • fix(openapi): define project and stacks actions as dedicated routes by @p0lycarpio in #2212

🐛 Bug Fixes

  • test(e2e): run data volume probes from the gitserver image by @kimdre in #2209
  • fix(compose): recreate services when secret or config values change by @kimdre in #2215
  • fix(poll): skip stacks locked by scheduled jobs by @kimdre in #2216

📦 Dependencies

  • chore(deps): update docker/buildx-bin docker tag to v0.39.1 by @renovate[bot] in #2213
  • fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #2214
  • chore(deps): update docker/dockerfile:1 docker digest to 572cebb by @renovate[bot] in #2217
  • chore(deps): update github/codeql-action digest to 1bd86f2 by @renovate[bot] in #2218
  • fix(deps): update module github.com/go-co-op/gocron/v2 to v2.23.2 by @renovate[bot] in #2220
  • chore(deps): update dependency zensical to v0.1.3 by @renovate[bot] in #2219

Full Changelog: v0.135.0...v0.136.0

Don't miss a new doco-cd release

NewReleases is sending notifications on new releases.