Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail .dockerignore is ignored in git context #408

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

dvalentiate
Copy link
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
README.md Outdated Show resolved Hide resolved
Copy link
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 <[email protected]>

Co-authored-by: CrazyMax <[email protected]>
Signed-off-by: David Valentiate <[email protected]>
@dvalentiate dvalentiate force-pushed the detail_ignore_of_dockerignore branch from b38f358 to e80adc3 Compare July 13, 2021 22:17
@dvalentiate
Copy link
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
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