Skip to content

Commit f074177

Browse files
committed
Add back 6.1-bookworm but only for amd64 and arm64v8
1 parent 2eaa84c commit f074177

File tree

6 files changed

+336
-4
lines changed

6 files changed

+336
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
strategy="$("$BASHBREW_SCRIPTS/github-actions/generate.sh")"
2727
strategy="$("$BASHBREW_SCRIPTS/github-actions/munge-i386.sh" -c <<<"$strategy")"
28+
strategy="$(jq -c <<<"$strategy" '.matrix.include = [ .matrix.include[] | select(.name | split("-") | (.[0] | split(".")[0:2] | join(".") | tonumber >= 6.1) and ( .[1] // "" | test("bookworm.*i386")) | not) ]')" # https://github.com/docker-library/redmine/pull/393 (6.1+ deps need newer rust on other arches and just isn't worth the trouble)
2829
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
2930
jq . <<<"$strategy" # sanity check / debugging aid
3031

6.1/bookworm/Dockerfile

Lines changed: 152 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

6.1/bookworm/docker-entrypoint.sh

Lines changed: 173 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate-stackbrew-library.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ for version; do
100100
variantParent="$(awk 'toupper($1) == "FROM" { print $2 }' "$dir/Dockerfile")"
101101
variantArches="${parentRepoToArches[$variantParent]}"
102102

103+
if [ "$variant" = 'bookworm' ] && [ "$version" != '5.1' ] && [ "$version" != '6.0' ]; then
104+
# https://github.com/docker-library/redmine/pull/393 (6.1+ deps need newer rust on other arches and just isn't worth the trouble)
105+
variantArches="$(jq <<<"$variantArches" --raw-input --raw-output '
106+
split(" ")
107+
| map(select(IN("amd64", "arm64v8")))
108+
| join(" ")
109+
')"
110+
fi
111+
103112
variantAliases=( "${versionAliases[@]/%/-$variant}" )
104113
variantAliases=( "${variantAliases[@]//latest-/}" )
105114

versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"sha256": "bc483da195f2444491d870e40f7fc909ae750f7ba8d0e28831e6d6c478812b88",
4242
"variants": [
4343
"trixie",
44+
"bookworm",
4445
"alpine3.22",
4546
"alpine3.21"
4647
],

versions.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ for version in "${versions[@]}"; do
8888
get_version "$version"
8989

9090
for suite in "${supportedDebianSuites[@]}"; do
91-
if [ "$suite" = 'bookworm' ] && [ "$version" != '5.1' ] && [ "$version" != '6.0' ]; then
92-
# https://github.com/docker-library/redmine/pull/393 (6.1+ deps need newer rust on other arches and just isn't worth the trouble)
93-
continue
94-
fi
9591
export suite
9692
doc="$(jq <<<"$doc" -c '
9793
.variants += [ env.suite ]

0 commit comments

Comments
 (0)