File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# { "variant": "alpine3.20", "platform": "linux/arm64/v8" },
1616# { "variant": "alpine3.20", "platform": "linux/386" }
1717# ]
18- images = variants . map do |variant |
19- # debian:bullseye-slim
18+ images = variants . filter_map do |variant |
19+ next unless variant == "bookworm"
2020 base_image = File . read ( "docker-ruby/master/#{ variant } /Dockerfile" ) [ /FROM (.*)/ , 1 ]
2121 manifest_inspect = JSON . parse ( `docker manifest inspect #{ base_image } ` )
2222
2323 # ["linux/amd64", "linux/arm64/v8", "linux/386"]
2424 platforms = manifest_inspect [ "manifests" ] . filter_map do |manifest |
2525 platform = manifest [ "platform" ]
2626 next unless platform [ "os" ] == "linux"
27+ next unless platform [ "architecture" ] == "arm"
28+ next unless platform [ 'variant' ] == "v7"
2729
2830 optional_variant = "/#{ platform [ 'variant' ] } " if platform [ 'variant' ]
2931 "#{ platform [ 'os' ] } /#{ platform [ 'architecture' ] } #{ optional_variant } "
You can’t perform that action at this time.
0 commit comments