Prevent the building of the default variant for each Travis stage
This commit is contained in:
parent
7823eba96f
commit
f385ece941
|
@ -49,12 +49,14 @@ for version in "${versions[@]}"; do
|
||||||
tag=$(get_tag "$version")
|
tag=$(get_tag "$version")
|
||||||
full_version=$(get_full_version "$version")
|
full_version=$(get_full_version "$version")
|
||||||
|
|
||||||
build "$version" "" "$tag"
|
|
||||||
|
|
||||||
# Get supported variants according to the target architecture.
|
# Get supported variants according to the target architecture.
|
||||||
# See details in function.sh
|
# See details in function.sh
|
||||||
IFS=' ' read -ra variants <<< "$(IFS=','; get_variants "$(dirname "$version")" "$2")"
|
IFS=' ' read -ra variants <<< "$(IFS=','; get_variants "$(dirname "$version")" "$2")"
|
||||||
|
|
||||||
|
if [[ "${variants[*]}" =~ "default" ]]; then
|
||||||
|
build "$version" "" "$tag"
|
||||||
|
fi
|
||||||
|
|
||||||
for variant in "${variants[@]}"; do
|
for variant in "${variants[@]}"; do
|
||||||
# Skip non-docker directories
|
# Skip non-docker directories
|
||||||
[ -f "$version/$variant/Dockerfile" ] || continue
|
[ -f "$version/$variant/Dockerfile" ] || continue
|
||||||
|
|
Loading…
Reference in New Issue