Skip to content

Commit

Permalink
Merge pull request #289 from nextcloud/release-channel
Browse files Browse the repository at this point in the history
Add tags for the release channels
  • Loading branch information
tilosp authored Mar 21, 2018
2 parents 0bb4186 + 3bb7c52 commit 7af1748
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
@@ -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")")"

Expand Down Expand Up @@ -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-}" )

Expand Down

0 comments on commit 7af1748

Please sign in to comment.