Skip to content

Docker build secrets support - #100

Open
smebberson wants to merge 1 commit into
masterfrom
docker-build-secrets
Open

smebberson wants to merge 1 commit into
masterfrom
docker-build-secrets

Conversation

@smebberson

@smebberson smebberson commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Adds Docker build secrets support: c d build can pass --secret id=...,env=... build arguments, configured via the project's c.js docker locations.

Related PRs

Notes

  • Adds formatBuildSecrets to bin/lib/c-kc.js and wires it into bin/c-d-build.js.
  • Secrets can be configured as an array or an object (with function values supported, consistent with build args); object keys become the secret id (lowercased, hyphens to underscores), and values prefixed with $ name the environment variable to read from.

Verification and testing

Verification

  • Without this change, c d build has no way to pass --secret flags through to Docker builds.

Testing

  • Configure secrets on a docker location in a project's c.js and run c d build <location>; confirm the --secret id=...,env=... flags appear in the Docker build invocation.

Deployment

  • No post-deployment steps; released with the next version of @idearium/cli.

This branch has not been deployed

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant