Skip to content

Commit e80adc3

Browse files
Detail .dockerignore is ignored in git context
Add a note to README.md that .dockerignore is not processed by default by build-push-action@v2. Signed-off-by: David Valentiate <david@bluedrop.com> Co-authored-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> Signed-off-by: David Valentiate <david@bluedrop.com>
1 parent 1bc1040 commit e80adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ By default, this action uses the [Git context](#git-context) so you don't need t
5353
done directly by buildkit. The git reference will be based on the [event that triggered your workflow](https://docs.github.com/en/actions/reference/events-that-trigger-workflows)
5454
and will result in the following context: `https://github.com/<owner>/<repo>.git#<ref>`.
5555

56-
Be careful because **any file mutation in the steps that precede the build step will be ignored** since
56+
Be careful because **any file mutation in the steps that precede the build step will be ignored, including processing of the `.dockerignore` file** since
5757
the context is based on the git reference. However, you can use the [Path context](#path-context) using the
5858
[`context` input](#inputs) alongside the [`actions/checkout`](https://github.com/actions/checkout/) action to remove
5959
this restriction.

0 commit comments

Comments
 (0)