Skip to content

Commit

Permalink
generate-stackbrew-library.sh: simplify.
Browse files Browse the repository at this point in the history
alpine-slim is built on all architectures and is not different to other
alpine versions, so no reason to have a separate section for it anymore.
  • Loading branch information
thresheek committed Mar 8, 2024
1 parent 67270a2 commit 6f3d62b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,7 @@ for version in "${versions[@]}"; do

alpineVersion="$(git show "$commit":"$version/alpine-slim/Dockerfile" | awk -F: '$1 == "FROM alpine" { print $2; exit }')"

for variant in alpine alpine-perl; do
commit="$(dirCommit "$version/$variant")"

variantAliases=( "${versionAliases[@]/%/-$variant}" )
variantAliases+=( "${versionAliases[@]/%/-${variant/alpine/alpine$alpineVersion}}" )
variantAliases=( "${variantAliases[@]//latest-/}" )

echo
cat <<-EOE
Tags: $(join ', ' "${variantAliases[@]}")
Architectures: arm64v8, arm32v6, arm32v7, ppc64le, s390x, i386, amd64
GitCommit: $commit
Directory: $version/$variant
EOE
done

for variant in alpine-slim; do
for variant in alpine alpine-perl alpine-slim; do
commit="$(dirCommit "$version/$variant")"

variantAliases=( "${versionAliases[@]/%/-$variant}" )
Expand Down

0 comments on commit 6f3d62b

Please sign in to comment.