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

bake: handle build checks from metadata #389

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Jun 27, 2024

@crazy-max crazy-max force-pushed the bake-warnings branch 4 times, most recently from b76f020 to 222b4ef Compare June 27, 2024 18:58
@crazy-max crazy-max changed the title bake: handle build warnings bake: handle build checks from metadata Jul 30, 2024
Comment on lines +15 to +26
group "default" {
targets = ["lint", "lint-other", "lint-inline"]
}
target "lint" {
dockerfile = "lint.Dockerfile"
}
target "lint-other" {
dockerfile = "lint-other.Dockerfile"
}
target "lint-inline" {
dockerfile-inline = "FRoM alpine\nENTRYPOINT [\"echo\", \"hello\"]"
}
Copy link
Member Author

Choose a reason for hiding this comment

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

based on this hcl definition, we can see no annotation are generated for lint-inline target as the dockerfile is inline: https://github.com/docker/actions-toolkit/actions/runs/10166368516/job/28116386475?pr=389#step:10:201

image

@crazy-max crazy-max force-pushed the bake-warnings branch 3 times, most recently from ccc68a5 to 47f1b48 Compare July 31, 2024 07:39
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max marked this pull request as ready for review July 31, 2024 07:52
@crazy-max crazy-max merged commit a8cf500 into docker:main Jul 31, 2024
42 checks passed
@crazy-max crazy-max deleted the bake-warnings branch July 31, 2024 08:34
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.

1 participant