mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-21 00:39:07 +08:00
[s390x][runners] Use consistent runner name across restarts
Currently, the runner name is taken from the docker container's hostname. This changes across restarts, causing the runner name to change across restarts too. This uses the host name to keep a consistent name.
This commit is contained in:
@@ -36,6 +36,7 @@ $ sudo systemctl daemon-reload
|
||||
$ sudo tee /etc/actions-runner-libbpf
|
||||
repo=<owner>/<name>
|
||||
access_token=<ghp_***>
|
||||
runner_name=<hostname>
|
||||
```
|
||||
|
||||
Access token should have the repo scope, consult
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
# - repo=<owner>/<name>
|
||||
# - access_token=<ghp_***>
|
||||
#
|
||||
# - runner_name=<hostname>
|
||||
|
||||
set -e -u
|
||||
|
||||
@@ -34,6 +34,7 @@ registration_token=$(jq --raw-output .token "$token_file")
|
||||
--url "https://github.com/$repo" \
|
||||
--token "$registration_token" \
|
||||
--labels z15 \
|
||||
--name "$runner_name" \
|
||||
--ephemeral
|
||||
|
||||
# Run one job.
|
||||
|
||||
Reference in New Issue
Block a user