mirror of
https://github.com/docker/build-push-action.git
synced 2026-01-14 08:13:09 +08:00
Compare commits
1 Commits
9de1db382a
...
d6338e180e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6338e180e |
13
README.md
13
README.md
@ -80,13 +80,12 @@ jobs:
|
|||||||
tags: user/app:latest
|
tags: user/app:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
**Important Considerations for Git Context**
|
Be careful because **any file mutation in the steps that precede the build step
|
||||||
|
will be ignored. Additionally the `.dockerignore` file is not used and can only be utilized by using path context.** since
|
||||||
* **File Mutations** perfomred during your workflow will **not** be reflected in the final Docker image.
|
the context is based on the Git reference. However, you can use the
|
||||||
|
[Path context](#path-context) using the [`context` input](#inputs) alongside
|
||||||
* **.dockerignore** is ignored altogether when using git context.
|
the [`actions/checkout`](https://github.com/actions/checkout/) action to remove
|
||||||
|
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…
x
Reference in New Issue
Block a user