readd separate pulls for shellcheck and docker-gc

This commit is contained in:
sparklyballs 2016-12-21 02:43:51 +00:00
parent 8b54cf2252
commit a12bc82373

9
run.sh
View File

@ -17,10 +17,11 @@ BASE_ARCH=""
GC_ARCH=""
fi
# pull docker images reading from docker-gc excludes file, ignoring readme-sync
# pull docker images reading from docker-gc excludes file, ignoring readme-sync, docker-gc and shellcheck
while read -r excludes
do
if [[ -z "${excludes}" || "${excludes}" == *"readme-sync"* ]]; then
if [[ -z "${excludes}" || "${excludes}" == *"readme-sync"* \
|| "${excludes}" == *"shellcheck"* || "${excludes}" == *"docker-gc"* ]]; then
:
elif [[ "${excludes}" == *"$BASE_ARCH"* && "$BASE_ARCH" == "arm64" ]]; then
docker pull "${excludes}"
@ -31,6 +32,10 @@ do
fi
done < "${WORKSPACE}"/etc/docker-gc-exclude
# pull docker-gc and shellcheck images
docker pull lsiodev/docker-gc"${GC_ARCH}"
docker pull lsiodev/shellcheck"${GC_ARCH}"
# run docker gc
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \