mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-03 02:36:34 +00:00
Further .dockerignore clarification
Signed-off-by: Nelson Wolf <wolfprime@gmail.com>
This commit is contained in:
parent
b515073d1d
commit
67fd9409c7
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -80,12 +80,13 @@ jobs:
|
||||||
tags: user/app:latest
|
tags: user/app:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Be careful because **any file mutation in the steps that precede the build step
|
**Important Considerations for Git Context**
|
||||||
will be ignored. Additionally the `.dockerignore` file is not used and can only be utilized by using path context.** since
|
|
||||||
the context is based on the Git reference. However, you can use the
|
* **File Mutations** perfomred during your workflow will **not** be reflected in the final Docker image.
|
||||||
[Path context](#path-context) using the [`context` input](#inputs) alongside
|
|
||||||
the [`actions/checkout`](https://github.com/actions/checkout/) action to remove
|
* **.dockerignore** is ignored altogether when using git context.
|
||||||
this restriction.
|
|
||||||
|
You can remove these limitations by using the [path context](#path-context) input alongside the [`actions/checkout`](https://github.com/actions/checkout/) action.
|
||||||
|
|
||||||
Default Git context can also be provided using the [Handlebars template](https://handlebarsjs.com/guide/)
|
Default Git context can also be provided using the [Handlebars template](https://handlebarsjs.com/guide/)
|
||||||
expression `{{defaultContext}}`. Here we can use it to provide a subdirectory
|
expression `{{defaultContext}}`. Here we can use it to provide a subdirectory
|
||||||
|
|
Loading…
Add table
Reference in a new issue