Add tags for the release channels

Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
Tilo Spannagel 2018-03-21 14:01:49 +01:00
parent 0bb418696e
commit 3bb7c52357
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429

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-}" )