Skip to content

Add support for build secrets - #69

Merged
JaewonHur merged 2 commits into
apple:mainfrom
percontation:secrets
Mar 14, 2026
Merged

Add support for build secrets#69
JaewonHur merged 2 commits into
apple:mainfrom
percontation:secrets

Conversation

@percontation

@percontation percontation commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

New feature: docker-compatible --secret id=key,... arg for container build, that works with Dockerfiles with RUN --mount=type=secret

docker-compatible `container build --secret id=value,...`
for Dockerfile `RUN --mount=type=secret`
Comment thread pkg/build/buildopts.go
@JaewonHur
JaewonHur merged commit bd53321 into apple:main Mar 14, 2026
2 checks passed
JaewonHur pushed a commit to apple/container that referenced this pull request Mar 17, 2026
docker-compatible `--secret id=key,...` arg for `container build`, that
works with Dockerfiles with `RUN --mount=type=secret`

Requires apple/container-builder-shim#69

## Type of Change
- [ ] Bug fix
- [x] New feature  
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds support for Dockerfiles that use build secrets (e.g. `RUN
--mount=type=secret ...`)

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs
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.

3 participants