Skip to content

Commit

Permalink
Add ubunto to generate-stackbrew-library.sh, with some indentations for
Browse files Browse the repository at this point in the history
legility
  • Loading branch information
Nico Kadel-Garcia committed Sep 8, 2023
1 parent 47f8af1 commit 7fce805
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,24 @@ for version in "${versions[@]}"; do
EOE
done

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

for variant in ubuntu; do
commit="$(dirCommit "$version/$variant")"

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

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

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

for variant in alpine alpine-perl; do
Expand Down

0 comments on commit 7fce805

Please sign in to comment.