This needs : dockerhost
git clone https://github.com/ariadata/dc-gitlab-runner.git && cd dc-gitlab-runner && rm -rf .gitdocker-compose up -ddocker exec -it gitlab-runner bashgitlab-runner registerFill the requested information
Note sample : for tags you can use
docker,linux,ubuntu(for shared addsharedtoo!)Note sample : for executor enter
dockerNote sample : for default docker image enter
ubuntu:latest
gitlab-runner restartdocker system prune -afOr you can set cron for do this for example once per day at midnight by :
crontab -l | { cat; echo "0 0 * * * docker system prune -af >/dev/null 2>&1"; } | crontab -
sudo systemctl restart cronsudo nano config/config.toml
docker exec -it gitlab-runner gitlab-runner restartDone!
