Update build.sh

Include suggestion from cimnine

Co-authored-by: Christian Mäder <cimnine@users.noreply.github.com>
This commit is contained in:
Tobias Genannt 2020-05-14 13:49:19 +02:00 committed by GitHub
parent 7fb78b3fd2
commit d8a6c321a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,8 +257,7 @@ for DOCKER_TARGET in "${DOCKER_TARGETS[@]}"; do
# Asuming non Github builds should always proceed # Asuming non Github builds should always proceed
SHOULD_BUILD="true" SHOULD_BUILD="true"
BUILD_REASON="${BUILD_REASON} interactive" BUILD_REASON="${BUILD_REASON} interactive"
fi elsif [ "$DOCKER_REGISTRY" = "docker.io" ]; then
if [ "$DOCKER_REGISTRY" = "docker.io" ] && [ "$SHOULD_BUILD" = "false" ]; then
source ./build-functions/get-public-image-config.sh source ./build-functions/get-public-image-config.sh
IFS=':' read -ra DOCKER_FROM_SPLIT <<< "${DOCKER_FROM}" IFS=':' read -ra DOCKER_FROM_SPLIT <<< "${DOCKER_FROM}"
if ! [[ ${DOCKER_FROM_SPLIT[0]} =~ .*/.* ]]; then if ! [[ ${DOCKER_FROM_SPLIT[0]} =~ .*/.* ]]; then