unregister ignores config.toml
gitlab-ci-multi-runner 1.11.1.
I have a valid /etc/gitlab-runner/config.toml
(which was created automatically by gitlab-ci-multi-runner register --name xx --executor xx --url xx --tag-list xx --registration-token xx
) containing correct name, url and token values.
gitlab-ci-multi-runner unregister
won't use it at all. Even gitlab-ci-multi-runner unregister -c /etc/gitlab-runner/config.toml
won't, which definitely looks like a bug to me. You have to pass --url, --token and --name to unregister to make it work.
root@cirunner-docker:~# gitlab-ci-multi-runner unregister
Running in system-mode.
ERROR: Deleting runner... error status=only http or https scheme supported
FATAL: Failed to delete runner
root@cirunner-docker:~#
root@cirunner-docker:~# gitlab-ci-multi-runner unregister -c /etc/gitlab-runner/config.toml
Running in system-mode.
ERROR: Deleting runner... error status=only http or https scheme supported
FATAL: Failed to delete runner
root@cirunner-docker:~#
root@cirunner-docker:~# gitlab-ci-multi-runner unregister --url https://xxxxx --token xxx
Running in system-mode.
ERROR: Deleting runner... forbidden runner=6LPdrR3y
FATAL: Failed to delete runner
root@cirunner-docker:~#
root@cirunner-docker:/home/ubuntu# gitlab-ci-multi-runner unregister --url https://xxxxx --token xxx --name xxxx
Running in system-mode.
Deleting runner... succeeded runner=ecf65f78
Updated /etc/gitlab-runner/config.toml
root@cirunner-docker:~#
Edited by 🤖 GitLab Bot 🤖