summaryrefslogtreecommitdiffstats
path: root/update.sh
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2023-03-21 22:44:22 +0000
committerGitHub <noreply@github.com>2023-03-21 22:44:22 +0000
commit165698da7b5d0033db7502d2275a8626e5802da0 (patch)
tree399c41b7c8c0b81fc6728967f44a3042f1665451 /update.sh
parent89a0b8904e90732e51c9cdcde80f849c6b439f66 (diff)
Alpine 3.17 (#1953)
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index a8089ff3..608f263e 100755
--- a/update.sh
+++ b/update.sh
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -eo pipefail
+declare -A alpine_version=(
+ [24]='3.16'
+ [25]='3.16'
+ [default]='3.17'
+)
+
declare -A php_version=(
[24]='8.0'
[default]='8.1'
@@ -86,6 +92,7 @@ function version_greater_or_equal() {
function create_variant() {
dir="$1/$variant"
+ alpineVersion=${alpine_version[$version]-${alpine_version[default]}}
phpVersion=${php_version[$version]-${php_version[default]}}
crontabInt=${crontab_int[$version]-${crontab_int[default]}}
@@ -100,6 +107,7 @@ function create_variant() {
# Replace the variables.
sed -ri -e '
+ s/%%ALPINE_VERSION%%/'"$alpineVersion"'/g;
s/%%PHP_VERSION%%/'"$phpVersion"'/g;
s/%%VARIANT%%/'"$variant"'/g;
s/%%VERSION%%/'"$fullversion"'/g;