Skip to content

Commit

Permalink
Update regexes and filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Mar 30, 2024
1 parent f19410b commit 9715d28
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/bob/job/docker_checker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,31 @@ defmodule Bob.Job.DockerChecker do
[
{"alpine",
[
~r/3\.19\.\d+/,
~r/3\.18\.\d+/,
~r/3\.17\.\d+/,
~r/3\.16\.\d+/
~r/^3\.19\.\d+$/,
~r/^3\.18\.\d+$/,
~r/^3\.17\.\d+$/,
~r/^3\.16\.\d+$/
]},
{"ubuntu",
[
# 24.04
~r/^noble-\d{8}$/,
# 22.04
~r/jammy-\d{8}/,
~r/^jammy-\d{8}$/,
# 20.04
~r/focal-\d{8}/
~r/^focal-\d{8}$/
]},
{"debian",
[
# 12
~r/bookworm-\d{8}$/,
~r/bookworm-\d{8}-slim/,
~r/^bookworm-\d{8}$/,
~r/^bookworm-\d{8}-slim$/,
# 11
~r/bullseye-\d{8}$/,
~r/bullseye-\d{8}-slim/,
~r/^bullseye-\d{8}$/,
~r/^bullseye-\d{8}-slim$/,
# 10
~r/buster-\d{8}$/,
~r/buster-\d{8}-slim/
~r/^buster-\d{8}$/,
~r/^buster-\d{8}-slim$/
]}
]
|> Task.async_stream(
Expand Down

0 comments on commit 9715d28

Please sign in to comment.