Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ansible/roles/basic-os/tasks/basic-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
- podman
- jq
- curl
- xxd
- acl
state: latest

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/runner/files/make_env.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ env_file_path=/home/github/.{{item.name}}-meshtastic.env
bearer={{ github_token }}

TOKEN=$(curl -L -sS -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $bearer" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/meshtastic/actions/runners/registration-token | jq '.token')
printf "export UID_RANDOM=`xxd -p -l2 /dev/urandom`\nexport TOKEN=$TOKEN\n" | tr -d '"' > $env_file_path
printf "export TOKEN=$TOKEN\n" | tr -d '"' > $env_file_path
2 changes: 1 addition & 1 deletion ansible/roles/runner/tasks/github-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
command:
- /bin/bash
- -c
- 'alias docker="podman"; source /.runner-meshtastic.env; cd; source bin/activate; cd runner; ./config.sh --url https://github.com/meshtastic --token $TOKEN --ephemeral --disableupdate --labels ubuntu-latest,{{ user_nickname }} --unattended --replace --name {{user_nickname}}-{{ item.runner_location }} --runnergroup Mesh-x86 --work _work; ./run.sh'
- 'alias docker="podman"; source /.runner-meshtastic.env; cd; source bin/activate; cd runner; ./config.sh --url https://github.com/meshtastic --token $TOKEN --ephemeral --disableupdate --labels ubuntu-latest,{{ user_nickname }} --unattended --replace --name {{user_nickname}}-{{ item.runner_location }}-{{item.name}} --runnergroup Mesh-x86 --work _work; ./run.sh'
state: present
volumes:
- "/home/github/.{{item.name}}-meshtastic.env:/.runner-meshtastic.env"
Expand Down