mirror of
https://github.com/utmapp/utmapp-runner.git
synced 2026-12-01 14:02:05 -10:00
bootstrap.sh recreates the MacStadium runner after a re-image: passwordless sudo, machine settings (power, Spotlight, software update, screen sharing, key-only SSH), Homebrew and build dependencies, the patched Squid proxy from the squid-patch submodule (as a boot-time LaunchDaemon), the runner account with automatic login, the GitHub Actions runners, Xcode from a provided .xip, weekly cache cleanup, and a read-only verify step. All settings live in config.env; the machine address goes in the git-ignored config.local.env. backup.sh pulls the runner's secrets (SSH host keys, Squid CA, runner registrations, automatic login password) into the git-ignored secrets/ directory, and bootstrap.sh restores them instead of generating new ones. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
8 lines
366 B
Plaintext
8 lines
366 B
Plaintext
# Installed as /etc/sudoers.d/runner by remote/00-sudoers.sh.
|
|
#
|
|
# The admin account needs passwordless sudo so the setup can run unattended.
|
|
# The runner may only switch Xcode: UTM's build.yml runs
|
|
# "sudo xcode-select -s $HOST_XCODE_PATH" when the selected Xcode differs.
|
|
@ADMIN_USER@ ALL=(ALL) NOPASSWD: ALL
|
|
@RUNNER_USER@ ALL=(ALL) NOPASSWD: /usr/bin/xcode-select
|