-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix bump-golang job failing to update Dockerfiles. #36234
Conversation
Use the dockerfile resource type to ensure we can parse and update Dockerfiles that use multistage builds. We need to handle FROM golang:x.x.x AS yyyyy in addition to the simple FROM golang:x.x.x case. The dockerfile resource type unfortunately doesn't support of list of files so there is now significantly more duplication, but it works and will keep working.
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've tested it after my last changes, I'm surprised to see if failing now. Perhaps something changed in the UpdateCLI command?
The first failure with this error was 3 weeks ago from what I can see 🤷 https://github.com/elastic/beats/actions/runs/5563958617/job/15069810162 |
Use the [dockerfile resource type](https://www.updatecli.io/docs/plugins/resource/dockerfile/) to ensure we can parse and update Dockerfiles that use multistage builds. We need to handle FROM golang:x.x.x AS yyyyy in addition to the simple FROM golang:x.x.x case. The dockerfile resource type unfortunately doesn't support of list of files so there is now significantly more duplication, but it works and will keep working. I used this configuration to create elastic#36233 by manually running updatecli with my changes.
Use the dockerfile resource type to ensure we can parse and update Dockerfiles that use multistage builds.
We need to handle FROM golang:x.x.x AS yyyyy in addition to the simple FROM golang:x.x.x case.
The dockerfile resource type unfortunately doesn't support of list of files so there is now significantly more duplication, but it works and will keep working.
I used this configuration to create #36233 by manually running updatecli with my changes.