Commit 297e1ad8 authored by Kamil Trzciński's avatar Kamil Trzciński 🔴

Clear docker cache containers on installation

parent ab1d708f
#!/bin/sh
set -e
docker version >/dev/null 2>/dev/null
CONTAINERS=$(docker ps -a | grep runner | grep project | grep concurrent | grep cache)
echo Clearing docker cache...
for container in $(docker ps -a | grep runner | grep project | grep concurrent | grep cache | awk '{print $1}'); do
docker rm -v $container || :
done
...@@ -7,6 +7,7 @@ case "$1" in ...@@ -7,6 +7,7 @@ case "$1" in
configure) configure)
/usr/share/gitlab-runner/post-install /usr/share/gitlab-runner/post-install
/usr/share/gitlab-runner/clear-docker-cache || :
;; ;;
*) *)
......
#!/bin/sh #!/bin/sh
set -e set -e
/usr/share/gitlab-runner/post-install /usr/share/gitlab-runner/post-install
/usr/share/gitlab-runner/clear-docker-cache || :
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment