0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-05-22 15:30:53 +02:00
This commit is contained in:
J0WI 2025-02-07 15:07:27 +03:30 committed by GitHub
commit c66e1d02dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 58 additions and 0 deletions

View file

@ -70,6 +70,24 @@ latest=$( cat latest.txt )
versions=( */ )
versions=( "${versions[@]%/}" )
for version in "${versions[@]}"; do
if [ "$version" = "notify_push" ]; then
commit="$(dockerfileCommit "$version")"
fullversion="$( awk '$1 == "ENV" && $2 == "NOTIFY_PUSH_VERSION" { print $3; exit }' "$version/Dockerfile" )"
versionAliases=( "$fullversion" "${fullversion%.*}" "${fullversion%.*.*}" )
variantAliases=( "${versionAliases[@]/%/-$version}" $version )
cat <<-EOE
Tags: $(join ', ' "${variantAliases[@]}")
Architectures: amd64, arm32v7, arm64v8
GitCommit: $commit
Directory: $version
EOE
continue
fi
variants=( $version/*/ )
variants=( $(for variant in "${variants[@]%/}"; do
echo "$(basename "$variant")"