Merge pull request #289 from nextcloud/release-channel

Add tags for the release channels
This commit is contained in:
Tilo Spannagel 2018-03-21 14:53:58 +01:00 committed by GitHub
commit 7af1748505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,11 @@
#!/bin/bash
set -Eeuo pipefail
declare -A release_channel=(
[production]='12.0.6'
[stable]='13.0.1'
)
self="$(basename "$BASH_SOURCE")"
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
@ -96,6 +101,12 @@ for version in "${versions[@]}"; do
versionAliases+=( "rc" )
fi
for channel in "${!release_channel[@]}"; do
if [ "$fullversion_with_extension" = "${release_channel[$channel]}" ]; then
versionAliases+=( "$channel" )
fi
done
variantAliases=( "${versionAliases[@]/%/-$variant}" )
variantAliases=( "${variantAliases[@]//latest-}" )