mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
Adding more
This commit is contained in:
parent
17a4bd2271
commit
815ff9d520
2 changed files with 8 additions and 9 deletions
|
@ -34,10 +34,9 @@ DOCKER_IMAGE_REPO='' # Docker tag for the image when create
|
|||
GCR_IMAGE_REPO='' # Docker tag for the image when created
|
||||
FOUND_IMAGE=0 # Flag for if the image has already been built
|
||||
|
||||
##############################
|
||||
# Get the org and repo names #
|
||||
##############################
|
||||
ORG_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -f1 -d'/') # Github Organization Name
|
||||
#####################
|
||||
# Get the repo name #
|
||||
#####################
|
||||
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" |cut -f2 -d'/') # GitHub Repository name
|
||||
|
||||
#########################
|
||||
|
@ -478,7 +477,7 @@ FindBuiltImage() {
|
|||
#######################################
|
||||
# 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 #
|
||||
|
@ -498,7 +497,7 @@ FindBuiltImage() {
|
|||
#####################################
|
||||
# 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 #
|
||||
|
@ -518,7 +517,7 @@ FindBuiltImage() {
|
|||
####################################
|
||||
# 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 #
|
||||
|
@ -538,7 +537,7 @@ FindBuiltImage() {
|
|||
##################################
|
||||
# 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 #
|
||||
|
|
|
@ -1744,7 +1744,7 @@ if [ "${VALIDATE_R}" == "true" ]; then
|
|||
##########################
|
||||
# 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 "No .lintr configuration file found, using defaults."
|
||||
cp $R_LINTER_RULES "$GITHUB_WORKSPACE"
|
||||
|
|
Loading…
Reference in a new issue