Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down
11 changes: 6 additions & 5 deletions update-tag-list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down