Adding more

This commit is contained in:
Lucas Gravley 2020-08-20 13:03:40 -05:00
parent 17a4bd2271
commit 815ff9d520
2 changed files with 8 additions and 9 deletions

View file

@ -34,10 +34,9 @@ DOCKER_IMAGE_REPO='' # Docker tag for the image when create
GCR_IMAGE_REPO='' # Docker tag for the image when created GCR_IMAGE_REPO='' # Docker tag for the image when created
FOUND_IMAGE=0 # Flag for if the image has already been built FOUND_IMAGE=0 # Flag for if the image has already been built
############################## #####################
# Get the org and repo names # # Get the repo name #
############################## #####################
ORG_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -f1 -d'/') # Github Organization Name
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -f2 -d'/') # GitHub Repository name REPO_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -f2 -d'/') # GitHub Repository name
######################### #########################
@ -478,7 +477,7 @@ FindBuiltImage() {
####################################### #######################################
# Look for Release image in DockerHub # # Look for Release image in DockerHub #
####################################### #######################################
DOCKERHUB_FIND_CMD=$(docker images | grep "${DOCKER_IMAGE_REPO}" | grep ${IMAGE_VERSION} 2>&1) DOCKERHUB_FIND_CMD=$(docker images | grep "${DOCKER_IMAGE_REPO}" | grep "${IMAGE_VERSION}" 2>&1)
####################### #######################
# Load the error code # # Load the error code #
@ -498,7 +497,7 @@ FindBuiltImage() {
##################################### #####################################
# Look for Major image in DockerHub # # Look for Major image in DockerHub #
##################################### #####################################
DOCKERHUB_FIND_CMD=$(docker images | grep "${DOCKER_IMAGE_REPO}" | grep ${MAJOR_TAG} 2>&1) DOCKERHUB_FIND_CMD=$(docker images | grep "${DOCKER_IMAGE_REPO}" | grep "${MAJOR_TAG}" 2>&1)
####################### #######################
# Load the error code # # Load the error code #
@ -518,7 +517,7 @@ FindBuiltImage() {
#################################### ####################################
# Look for Release image in GitHub # # Look for Release image in GitHub #
#################################### ####################################
GCR_FIND_CMD=$(docker images | grep "${GCR_IMAGE_REPO}" | grep ${IMAGE_VERSION} 2>&1) GCR_FIND_CMD=$(docker images | grep "${GCR_IMAGE_REPO}" | grep "${IMAGE_VERSION}" 2>&1)
####################### #######################
# Load the error code # # Load the error code #
@ -538,7 +537,7 @@ FindBuiltImage() {
################################## ##################################
# Look for Major image in GitHub # # Look for Major image in GitHub #
################################## ##################################
GCR_FIND_CMD=$(docker images | grep "${GCR_IMAGE_REPO}" | grep ${MAJOR_TAG} 2>&1) GCR_FIND_CMD=$(docker images | grep "${GCR_IMAGE_REPO}" | grep "${MAJOR_TAG}" 2>&1)
####################### #######################
# Load the error code # # Load the error code #

View file

@ -1744,7 +1744,7 @@ if [ "${VALIDATE_R}" == "true" ]; then
########################## ##########################
# Check for local config # # Check for local config #
########################## ##########################
if [ ! -f "${GITHUB_WORKSPACE}/.lintr" ] && [ "${FILE_ARRAY_R[@]}" -ne 0 ]; then if [ ! -f "${GITHUB_WORKSPACE}/.lintr" ] && [ ${#FILE_ARRAY_R[@]} -ne 0 ]; then
info " " info " "
info "No .lintr configuration file found, using defaults." info "No .lintr configuration file found, using defaults."
cp $R_LINTER_RULES "$GITHUB_WORKSPACE" cp $R_LINTER_RULES "$GITHUB_WORKSPACE"