Avoid failures when other runners are already registered with same name
Hi, we were running into issues where newly created instances weren't able to register with Github as runners, because by default the hostname is used as --name, and AWS was reusing hostnames from our IP range.
This can be fixed by setting the name explicitly, to something that is unique.
I think --name $(hostname)-$(uuidgen) should work well.
Fixes https://github.com/machulav/ec2-github-runner/issues/128
this is awesome and was also causing us problems.
Awesome fix! I am facing this problem right now on my builds... When this PR will be merged?
Awesome fix! I am facing this problem right now on my builds... When this PR will be merged?
It looks like it won't be that soon.
If it helps we are using it like that:
- name: Start EC2 runner
uses: kimetrica/ec2-github-runner@set-unique-name-in-UserData-script
We are also running in the same issue, it would be great to see this merged soon