Explorar o código

Fix "maven:onbuild-alpine" failing tests due to not being recognized properly as "onbuild"

Tianon Gravi %!s(int64=9) %!d(string=hai) anos
pai
achega
fd54f4f87b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      test/run.sh

+ 6 - 0
test/run.sh

@@ -97,6 +97,12 @@ for dockerImage in "$@"; do
 	#version="${tagVar%-*}"
 	variant="${tagVar##*-}"
 	
+	if [[ "$tagVar" == *onbuild* ]]; then
+		# "maven:onbuild-alpine" is still onbuild
+		# ONCE ONBUILD, ALWAYS ONBUILD
+		variant='onbuild'
+	fi
+	
 	testRepo=$repo
 	[ -z "${testAlias[$repo]}" ] || testRepo="${testAlias[$repo]}"