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 ff8bde70 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

feat: register runner with default values

parent 60771177
No related branches found
No related tags found
1 merge request!6Resolve "Register runner"
Pipeline #81 passed with warnings
...@@ -29,9 +29,25 @@ create_config(){ ...@@ -29,9 +29,25 @@ create_config(){
echo "${CONFIG_FILE}" echo "${CONFIG_FILE}"
} }
runner_register() {
docker run --rm -v gitlab-runner-config:/etc/gitlab-runner \
gitlab/gitlab-runner register \
--non-interactive \
--url "${gitlab_url}" \
--registration-token "${gitlab_registration_token}" \
--executor "docker" \
--docker-image alpine:latest \
--description "My GitLab Runner docker" \
--tag-list "docker" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected"
}
main() { main() {
echo "My GitLab Runner" echo "My GitLab Runner"
load_config load_config
runner_register
} }
main "$@" 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