mirror of
https://github.com/Icinga/docker-icingaweb2.git
synced 2025-10-23 21:11:00 +02:00
Merge pull request #49 from Icinga/bugfix/get-mods-tags
get_special(): pin icingadb-web commit only for v1.0.0-rc1
This commit is contained in:
commit
a8e62e4843
13
get-mods.sh
13
get-mods.sh
@ -5,7 +5,11 @@ set -exo pipefail
|
||||
BRANCH="$1"
|
||||
|
||||
get_tag () {
|
||||
git -C dockerweb2-temp tag --sort=-version:refname |grep -vFe - |head -n 1
|
||||
if git -C dockerweb2-temp tag |grep -qvFe -; then # ex. RCs
|
||||
git -C dockerweb2-temp tag --sort=-version:refname |grep -vFe - |head -n 1
|
||||
else
|
||||
git -C dockerweb2-temp tag --sort=-version:refname |grep -Fe - |head -n 1
|
||||
fi
|
||||
}
|
||||
|
||||
get_special () {
|
||||
@ -14,9 +18,6 @@ get_special () {
|
||||
git clone --bare "https://github.com/Icinga/${1}.git" dockerweb2-temp
|
||||
|
||||
case "$2" in
|
||||
icingaweb2/modules/icingadb)
|
||||
REF=2c0662c420617712bd26234da550dcf8d4afcdb8 # v1.0.0-rc1+
|
||||
;;
|
||||
icingaweb2/modules/incubator)
|
||||
REF="$(get_tag)"
|
||||
;;
|
||||
@ -25,6 +26,10 @@ get_special () {
|
||||
REF="$BRANCH"
|
||||
else
|
||||
REF="$(get_tag)"
|
||||
|
||||
if [ "$2" = icingaweb2/modules/icingadb ] && [ "$REF" = 'v1.0.0-rc1' ]; then
|
||||
REF=2c0662c420617712bd26234da550dcf8d4afcdb8 # v1.0.0-rc1+
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user