-
Notifications
You must be signed in to change notification settings - Fork 59
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
Automatically update the alpine version with the 2 latest minor versions #92
Automatically update the alpine version with the 2 latest minor versions #92
Conversation
4d166fc
to
e0da353
Compare
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.
Since things break between releases of minor alpine versions I think we should explicitly pick the minor versions and only automatically update the patch version.
617ca53
to
70ad17d
Compare
@ericmj I haven't finished all of the changes yet, but pushed up some of the changes you requested. I'm not quite sure how much I like a |
I am not sure I follow, why do you need to move it to another file? Right now only alpine is looked up so that's only what you have to test, if ubuntu/debian is added in the future that could be tested as well, possibly by changing the API to If you would rather mock then please use https://hex.pm/packages/mox instead and create a behaviour for |
Sorry for the delay, finally got some time to work on this again. What I meant by needing to move it to another file, is that then you'd need to move |
70ad17d
to
0623506
Compare
@ericmj this is ready to be reviewed again |
To me it's fine to have public functions in a module even it's only to test them. Personally I would merge Thank you for the PR! |
Is this ready to be merged? Alpine 3.14.1 has been released and I'm keen to bump our images. |
@ericmj any reason to not merge this? |
@ericmj can we merge this? I see that Alpine 3.14.1 and Alpine 3.14.2 have been released and it would be nice to have the next Erlang and Elixir releases to use those newer Alpine versions. |
Adding this change would increase the maintenance burden too much since Alpine often make breaking changes. Instead please submit PRs with version updates and the required changes to bob or build logs that show that new versions are compatible with the old. |
This solves part of
bob/lib/bob/job/docker_checker.ex
Line 7 in df60a5e
I think my tests should be good enough to be sure that it works, but I have a hard time figuring out which images will be built in the docker checker job. I did confirm that it does currently return the same @build var at the current time though, so it should behave properly.
Let me know if you like this approach and I can expand this to include debian and ubuntu as well