From 1e616106cd9c5cc937af61b61cff32f15e443998 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 9 Oct 2024 22:19:01 +0200 Subject: [PATCH] chore(gitlab): curl apis to create a runner --- snippets/gitlab/gitlab-runner.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/gitlab/gitlab-runner.sh b/snippets/gitlab/gitlab-runner.sh index 9a54f45..936bc81 100644 --- a/snippets/gitlab/gitlab-runner.sh +++ b/snippets/gitlab/gitlab-runner.sh @@ -5,6 +5,8 @@ helm --namespace 'gitlab' upgrade --install --create-namespace --version '0.64.1 # register with token gitlab-runner register --url 'https://gitlab.com/' --non-interactive --executor 'shell' --token 'glrt-…' +curl -X 'POST' https://gitlab.com/api/v4/user/runners -H 'PRIVATE-TOKEN: glpat-m-…' \ + -d 'runner_type=instance_type' -d "tag_list=small,instance" -d 'run_untagged=false' # register with registration token: deprecated gitlab-runner register --url 'https://gitlab.example.com' --registration-token 'abc…' -n \ --name 'gitlab-aws-autoscaler' --executor 'docker+machine' --docker-image 'alpine'