Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 650dee5e authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

feat: launch runner

parent 0bc73acf
No related branches found
No related tags found
1 merge request!7Resolve "Launch runner"
Pipeline #84 passed with warnings
......@@ -31,7 +31,7 @@ create_config(){
runner_register() {
docker volume create gitlab-runner-config
docker run --rm -v gitlab-runner-config:/etc/gitlab-runner \
gitlab/gitlab-runner register \
--non-interactive \
......@@ -46,10 +46,19 @@ runner_register() {
--access-level="not_protected"
}
runner_start() {
runner_name="my-gitlab-runner-$(hostname)-$(basename "$(pwd)")"
docker run -d --name "${runner_name}" --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v gitlab-runner-config:/etc/gitlab-runner \
gitlab/gitlab-runner
}
main() {
echo "My GitLab Runner"
load_config
runner_register
runner_start
}
main "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment