Skip to content

Detail .dockerignore is ignored in git context#408

Merged
crazy-max merged 1 commit intodocker:masterfrom
dvalentiate:detail_ignore_of_dockerignore
Jul 16, 2021
Merged

Detail .dockerignore is ignored in git context#408
crazy-max merged 1 commit intodocker:masterfrom
dvalentiate:detail_ignore_of_dockerignore

Conversation

@dvalentiate
Copy link
Copy Markdown
Contributor

Add a note to README.md that .dockerignore is not processed by default by build-push-action@v2.

This issue was raised in this issue Inconsistent dockerignore behavior from other builders but no action was taken.

My team lost hours because .dockerignore is ignored unless context: .. This behaviour is different from expectations of all my team, and now we must update many projects. I hope this PR can help others avoid wasting so much time on an unexpected situation.

@dvalentiate dvalentiate requested a review from crazy-max as a code owner July 13, 2021 18:41
@dvalentiate dvalentiate force-pushed the detail_ignore_of_dockerignore branch 2 times, most recently from c3d5046 to 907441c Compare July 13, 2021 18:47
Comment thread README.md Outdated
Copy link
Copy Markdown
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also check DCO

@dvalentiate dvalentiate force-pushed the detail_ignore_of_dockerignore branch from 23c9f93 to b38f358 Compare July 13, 2021 22:17
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>
@dvalentiate dvalentiate force-pushed the detail_ignore_of_dockerignore branch from b38f358 to e80adc3 Compare July 13, 2021 22:17
@dvalentiate
Copy link
Copy Markdown
Contributor Author

@crazy-max thanks for the review. I added your suggestion of "`" around .dockerignore and rebased.

@crazy-max crazy-max self-requested a review July 13, 2021 22:26
Copy link
Copy Markdown
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@crazy-max crazy-max merged commit ad1d2e9 into docker:master Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants