diff --git a/README.md b/README.md index 08c19ef..73609b2 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Those images based on [postgres](https://hub.docker.com/_/postgres) and could us | PGroonga | PostgreSQL | Distribution | Tags | Path | | -------- | ---------- | ------------------------- | ------------------------------------------- | ------------------------------------------------- | -| 4.0.4 | 18 | Alpine Linux | 4.0.4-alpine-18, latest-alpine-18 | [alpine/18/Dockerfile][4.0.4-alpine-18] | -| 4.0.4 | 17 | Alpine Linux | 4.0.4-alpine-17, latest-alpine-17, latest | [alpine/17/Dockerfile][4.0.4-alpine-17] | +| 4.0.4 | 18 | Alpine Linux | 4.0.4-alpine-18, latest-alpine-18, latest | [alpine/18/Dockerfile][4.0.4-alpine-18] | +| 4.0.4 | 17 | Alpine Linux | 4.0.4-alpine-17, latest-alpine-17 | [alpine/17/Dockerfile][4.0.4-alpine-17] | | 4.0.4 | 16 | Alpine Linux | 4.0.4-alpine-16, latest-alpine-16 | [alpine/16/Dockerfile][4.0.4-alpine-16] | | 4.0.4 | 15 | Alpine Linux | 4.0.4-alpine-15, latest-alpine-15 | [alpine/15/Dockerfile][4.0.4-alpine-15] | | 4.0.4 | 14 | Alpine Linux | 4.0.4-alpine-14, latest-alpine-14 | [alpine/14/Dockerfile][4.0.4-alpine-14] | diff --git a/update-tag-list.rb b/update-tag-list.rb index 84793ff..effb9b0 100755 --- a/update-tag-list.rb +++ b/update-tag-list.rb @@ -12,11 +12,11 @@ def debian_code_name(type_path) end type_paths = [] -alpine_type_paths = Dir.glob("alpine/*") - ["alpine/build.sh"] -alpine_slim_type_paths = Dir.glob("alpine/*-slim") +alpine_type_paths = (Dir.glob("alpine/*") - ["alpine/build.sh"]).sort.reverse +alpine_slim_type_paths = Dir.glob("alpine/*-slim").sort.reverse alpine_type_paths -= alpine_slim_type_paths -type_paths += alpine_type_paths.sort.reverse -type_paths += alpine_slim_type_paths.sort.reverse +type_paths += alpine_type_paths +type_paths += alpine_slim_type_paths type_paths += Dir.glob("debian/*").sort.reverse readme_md_path = File.join(__dir__, "README.md") @@ -29,7 +29,8 @@ def debian_code_name(type_path) when / latest / components = line.split("|") - latest_postgresql_version = components[2].strip + # "alpine/18" -> "18" + latest_postgresql_version = alpine_type_paths[0].split("/")[1] pgroonga_version_width = components[1].size - 2 postgresql_version_width = components[2].size - 2