Skip to content

Commit

Permalink
Add extra labels to GHA runners to target a specific machine or runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddemoll committed Nov 15, 2024
1 parent a021a25 commit 3a72ba5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/register_runners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#
# register_runners 8 compute jbg2PSMoQLfqvj0ZeBUW
#
# Currently we're labelling runners with either "compute" or "hardware-access".
# Currently we're labelling runners with either "compute" or "hardware-access". Each
# runner also has its hostname and a unique name ("hostname-i") as a label.
# Note that a label "self-hosted" gets applied automatically.
#
# With a privileged enough account the token can be found at:
Expand Down Expand Up @@ -89,7 +90,7 @@ do
--replace \
--url "${URL}" \
--token "${TOKEN}" \
--labels "${LABELS}" \
--labels "${LABELS},$(hostname),$(hostname)-$i" \
--name "${runner_name}"

# TODO:
Expand Down

0 comments on commit 3a72ba5

Please sign in to comment.