mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
Fixing it
This commit is contained in:
parent
7d53a77c11
commit
95563d224f
1 changed files with 22 additions and 17 deletions
|
@ -369,25 +369,30 @@ BuildImage() {
|
||||||
info "Successfull [tag] Version:[${IMAGE_VERSION}] of additonal image!"
|
info "Successfull [tag] Version:[${IMAGE_VERSION}] of additonal image!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###################
|
########################################################
|
||||||
# Build the image #
|
# Need to see if we need to tag a major update as well #
|
||||||
###################
|
########################################################
|
||||||
docker build -t "${ADDITONAL_URL}:${MAJOR_TAG}" -f "${DOCKERFILE_PATH}" . 2>&1
|
if [ ${UPDATE_MAJOR_TAG} -eq 1 ]; then
|
||||||
|
###################
|
||||||
|
# Build the image #
|
||||||
|
###################
|
||||||
|
docker build -t "${ADDITONAL_URL}:${MAJOR_TAG}" -f "${DOCKERFILE_PATH}" . 2>&1
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Load the error code #
|
# Load the error code #
|
||||||
#######################
|
#######################
|
||||||
ERROR_CODE=$?
|
ERROR_CODE=$?
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Check the shell for errors #
|
# Check the shell for errors #
|
||||||
##############################
|
##############################
|
||||||
if [ ${ERROR_CODE} -ne 0 ]; then
|
if [ ${ERROR_CODE} -ne 0 ]; then
|
||||||
# ERROR
|
# ERROR
|
||||||
fatal "failed to [tag] Version:[${MAJOR_TAG}]Additonal location Dockerfile!"
|
fatal "failed to [tag] Version:[${MAJOR_TAG}]Additonal location Dockerfile!"
|
||||||
else
|
else
|
||||||
# SUCCESS
|
# SUCCESS
|
||||||
info "Successfull [tag] Version:[${MAJOR_TAG}] of additonal image!"
|
info "Successfull [tag] Version:[${MAJOR_TAG}] of additonal image!"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in a new issue