(target)
| 2318 | |
| 2319 | private |
| 2320 | def resolve_docker_image(target) |
| 2321 | case target |
| 2322 | when /-(?:arm64|aarch64)\z/ |
| 2323 | target = Regexp.last_match.pre_match |
| 2324 | platform = "linux/arm64" |
| 2325 | else |
| 2326 | platform = "linux/amd64" |
| 2327 | end |
| 2328 | |
| 2329 | case target |
| 2330 | when /\Acentos-(\d+)-stream\z/ |
| 2331 | centos_stream_version = $1 |
| 2332 | image = "quay.io/centos/centos:stream#{centos_stream_version}" |
| 2333 | else |
| 2334 | case platform |
| 2335 | when "linux/arm64" |
| 2336 | image = "arm64v8/" |
| 2337 | else |
| 2338 | image = "" |
| 2339 | end |
| 2340 | target = target.gsub(/\Aamazon-linux/, "amazonlinux") |
| 2341 | image << target.gsub(/-/, ":") |
| 2342 | end |
| 2343 | |
| 2344 | [platform, image] |
| 2345 | end |
| 2346 | |
| 2347 | def verify_apt_sh |
| 2348 | "/host/dev/release/verify-apt.sh" |
nothing calls this directly
no outgoing calls
no test coverage detected