From e80adc329974ea27108076db829af8c097d4c59b Mon Sep 17 00:00:00 2001 From: David Valentiate Date: Tue, 13 Jul 2021 13:33:34 -0400 Subject: [PATCH] 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 Co-authored-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> Signed-off-by: David Valentiate --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83b0bd1..5bdb96e 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ By default, this action uses the [Git context](#git-context) so you don't need t 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) and will result in the following context: `https://github.com//.git#`. -Be careful because **any file mutation in the steps that precede the build step will be ignored** since +Be careful because **any file mutation in the steps that precede the build step will be ignored, including processing of the `.dockerignore` file** since the context is based on the git reference. However, you can use the [Path context](#path-context) using the [`context` input](#inputs) alongside the [`actions/checkout`](https://github.com/actions/checkout/) action to remove this restriction.