Skip to content

Commit

Permalink
Merge pull request #240 from infosiftr/alpine3.18
Browse files Browse the repository at this point in the history
Update to Alpine 3.18
  • Loading branch information
yosifkit committed May 16, 2023
2 parents 23b02e8 + 746a68f commit f2169e2
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 26 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.

5 changes: 4 additions & 1 deletion apply-templates.sh
Expand Up @@ -43,7 +43,10 @@ for version; do
for variant in "${variants[@]}"; do
export variant

# https://github.com/docker-library/php/blob/d4616116cbeda0937d08ef89ef27b67c5156befd/versions.sh#L93-L96
# https://github.com/docker-library/php/blob/0a68eaa2d3a269079c687e55abc960c77d3a134e/versions.sh#L94-L101
if [[ "$variant" = *-'alpine3.16' ]] && [ "$phpVersion" != '8.0' ]; then
continue
fi
if [ "$phpVersion" = '8.0' ] && [[ "$variant" = *-alpine* ]] && [[ "$variant" != *-'alpine3.16' ]]; then
continue
fi
Expand Down
7 changes: 5 additions & 2 deletions versions.json
Expand Up @@ -12,8 +12,8 @@
"fpm-bullseye",
"apache-buster",
"fpm-buster",
"fpm-alpine3.17",
"fpm-alpine3.16"
"fpm-alpine3.18",
"fpm-alpine3.17"
],
"version": "10.0.9"
},
Expand All @@ -27,6 +27,7 @@
"fpm-bullseye",
"apache-buster",
"fpm-buster",
"fpm-alpine3.18",
"fpm-alpine3.17",
"fpm-alpine3.16"
],
Expand All @@ -45,6 +46,7 @@
"fpm-bullseye",
"apache-buster",
"fpm-buster",
"fpm-alpine3.18",
"fpm-alpine3.17",
"fpm-alpine3.16"
],
Expand All @@ -63,6 +65,7 @@
"fpm-bullseye",
"apache-buster",
"fpm-buster",
"fpm-alpine3.18",
"fpm-alpine3.17",
"fpm-alpine3.16"
],
Expand Down
42 changes: 23 additions & 19 deletions versions.sh
Expand Up @@ -84,30 +84,34 @@ for version in "${versions[@]}"; do
export fullVersion
json="$(
jq <<<"$json" -c --argjson doc "$doc" '
.[env.version] = {
version: env.fullVersion,
variants: [
.[env.version] = (
{
version: env.fullVersion,
phpVersions: (
# https://www.drupal.org/docs/system-requirements/php-requirements
# https://www.drupal.org/docs/7/system-requirements/php-requirements
if env.version == "7" then
[ "8.0" ]
elif env.version | startswith("9.") then
[ "8.1", "8.0" ]
else
# https://www.drupal.org/node/3264830
# Require PHP 8.1 for Drupal 10
[ "8.2", "8.1" ]
end
),
} + $doc
| .variants = [
"bullseye",
"buster",
"alpine3.18",
"alpine3.17",
"alpine3.16"
if .phpVersions | index("8.0") then "alpine3.16" else empty end, # https://github.com/docker-library/php/blob/0a68eaa2d3a269079c687e55abc960c77d3a134e/versions.sh#L94-L101
empty
| if startswith("alpine") then empty else "apache-" + . end,
"fpm-" + .
],
phpVersions: (
# https://www.drupal.org/docs/system-requirements/php-requirements
# https://www.drupal.org/docs/7/system-requirements/php-requirements
if env.version == "7" then
[ "8.0" ]
elif env.version | startswith("9.") then
[ "8.1", "8.0" ]
else
# https://www.drupal.org/node/3264830
# Require PHP 8.1 for Drupal 10
[ "8.2", "8.1" ]
end
),
} + $doc
]
)
'
)"
done
Expand Down

0 comments on commit f2169e2

Please sign in to comment.