From 7da35a127d702d8237a0f006774c8f3220aa309c Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Wed, 29 Sep 2021 14:39:25 +0200 Subject: [PATCH] Use branch snapshot/nighly for icinga-php-* when building master containers --- get-mods.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/get-mods.sh b/get-mods.sh index b77d3d3..dc32e74 100755 --- a/get-mods.sh +++ b/get-mods.sh @@ -22,7 +22,9 @@ get_special () { REF="$(get_tag)" ;; *) - if [ -n "$BRANCH" ] && git -C dockerweb2-temp show -s --oneline "$BRANCH"; then + if [ "$BRANCH" = master ] && [[ "$2" == icinga-php/* ]]; then + REF=snapshot/nightly + elif [ -n "$BRANCH" ] && git -C dockerweb2-temp show -s --oneline "$BRANCH"; then REF="$BRANCH" else REF="$(get_tag)"