forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bump-golang job failing to update Dockerfiles. (elastic#36234)
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.
- Loading branch information
1 parent
19c3b25
commit b1353e6
Showing
2 changed files
with
279 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters