Skip to content

Commit

Permalink
Add Debian bookworm, drop buster
Browse files Browse the repository at this point in the history
Except in PHP 8.0 😞
  • Loading branch information
yosifkit committed Jun 13, 2023
1 parent ebd9f36 commit 2729aaf
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 11 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions apply-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ for version; do
for variant in "${variants[@]}"; do
export variant

# https://github.com/docker-library/php/blob/86b8b13760c7d7c6120fb635f6a1c84b22f33386/versions.sh#L99-L105
if [ "$phpVersion" = '8.0' ] && [[ "$variant" = *-'bookworm' ]]; then
continue
elif [ "$phpVersion" != '8.0' ] && [[ "$variant" = *-'buster' ]]; then
continue
fi
# https://github.com/docker-library/php/blob/0a68eaa2d3a269079c687e55abc960c77d3a134e/versions.sh#L94-L101
if [[ "$variant" = *-'alpine3.16' ]] && [ "$phpVersion" != '8.0' ]; then
continue
Expand Down
10 changes: 8 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"8.1"
],
"variants": [
"apache-bookworm",
"fpm-bookworm",
"apache-bullseye",
"fpm-bullseye",
"apache-buster",
"fpm-buster",
"fpm-alpine3.18",
"fpm-alpine3.17"
],
Expand All @@ -23,6 +23,8 @@
"8.0"
],
"variants": [
"apache-bookworm",
"fpm-bookworm",
"apache-bullseye",
"fpm-bullseye",
"apache-buster",
Expand All @@ -42,6 +44,8 @@
"8.0"
],
"variants": [
"apache-bookworm",
"fpm-bookworm",
"apache-bullseye",
"fpm-bullseye",
"apache-buster",
Expand All @@ -61,6 +65,8 @@
"8.0"
],
"variants": [
"apache-bookworm",
"fpm-bookworm",
"apache-bullseye",
"fpm-bullseye",
"apache-buster",
Expand Down
3 changes: 2 additions & 1 deletion versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ for version in "${versions[@]}"; do
),
} + $doc
| .variants = [
"bookworm",
"bullseye",
"buster",
if .phpVersions | index("8.0") then "buster" else empty end, # https://github.com/docker-library/php/blob/86b8b13760c7d7c6120fb635f6a1c84b22f33386/versions.sh#L99-L105
"alpine3.18",
"alpine3.17",
if .phpVersions | index("8.0") then "alpine3.16" else empty end, # https://github.com/docker-library/php/blob/0a68eaa2d3a269079c687e55abc960c77d3a134e/versions.sh#L94-L101
Expand Down

0 comments on commit 2729aaf

Please sign in to comment.