add dockerfile input for monorepos
Lets a caller point at a non-default Dockerfile while keeping the build context broader. Needed for repos with multiple binaries sharing internal packages (api/Dockerfile + worker/Dockerfile, build context at repo root). Empty default preserves prior behavior. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@ the same tag.
|
||||
|---|---|---|---|
|
||||
| `image` | yes | — | Full image name without tag (e.g. `code.fritzlab.net/fritzlab/chrony`). |
|
||||
| `context` | no | `.` | Docker build context. |
|
||||
| `dockerfile` | no | `Dockerfile` (in context) | Path to the Dockerfile, relative to the context (or absolute under `$GITHUB_WORKSPACE`). Use for monorepos where the build context is the repo root but the Dockerfile lives in a subdir, e.g. `dockerfile: api/Dockerfile`. |
|
||||
| `build-args` | no | — | Multiline `KEY=VALUE` build args. |
|
||||
| `smoke-test` | no | — | Shell command run after build. `$IMAGE` is set to `<image>:<run_number>`. Non-zero exit fails the action. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user