mirror of
https://github.com/linuxserver/docker-gc.git
synced 2026-01-09 06:50:45 +08:00
readd separate pulls for shellcheck and docker-gc
This commit is contained in:
parent
8b54cf2252
commit
a12bc82373
9
run.sh
9
run.sh
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user