-
Notifications
You must be signed in to change notification settings - Fork 21
Configuring Tartelet
After installing Tartelet it must be configured with the virtual machine to run and the credentials needed to register the runners on GitHub.
Tartelet will automatically register the virtual machine as a runner on a GitHub organization. In order to do this it must be configured with the relevant credentials. Follow the steps below to add the credentials to Tartelet.
ℹ️ Note
If you have already created a GitHub App and you are setting up another host machine, you can reuse the credentials from the existing GitHub App. The credentials do not need to be different for each host machine.
- Create a GitHub App on your organization. This can be done by under "Developer settings" in your organization's settings or by following this link: https://github.com/organizations/{YOUR_ORGANIZATION_NAME}/settings/apps. Remember to change the link to include the name of your organization.
- When creating the GitHub App, make sure to give it read/write permissions to the self-hosted runners and to disable the webhook.
- Select "Generate a private key". Tartelet will use this to send authorized requests to the API. The generated key should automatically be downloaded.
- Transfer the generated private key to your host machine. If you are using VNC, the private key can be dragged on top of the VNC window to transfer it.
- Launch Tartelet, open its settings, and select the GitHub pane.
- Fill out the name of your organization.
- Fill out the app ID. This can be found under the GitHub app that you just created.
- Select the private key file. The file is stored securely in the keychain of the host machine.
- Make sure to delete the transferred private key from the host machine.
When everything is configured correctly, the settings should look similar to the screenshot below.
Tartelet builds upon Tart which it uses to manage the ephemeral virtual machines, that is, Tartelet uses Tart to clone, run, and delete virtual machines.
This section guides you through creating and configuring a virtual machine using Tart and configuring Tartelet to use that virtual machine for the GitHub Actions runners. All steps should be performed on your host machine.
ℹ️ Note
If you are configuring another host machine and have previously created a virtual machine, you can transfer that virtual machine to your new host machine. Please refer to the Copying a Virtual Machine article for the details on reusing an existing virtual machine on the host machine.
Uses the tart
CLI's create
command to create a virtual machine. When creating a virtual machine, you must specify the name of the virtual machine to create and a link to the IPSW file containing the operating system to install on the virtual machine. You do this by passing the link using the --from-ipsw
flag. You can find links to IPSW files on ipsw.me.
For example, run the following command to create a virtual machine named runner
with macOS 13.2.1.
tart create runner --from-ipsw=https://updates.cdn-apple.com/2023WinterFCS/fullrestores/032-48346/EFF99C1E-C408-4E7A-A448-12E1468AF06C/UniversalMac_13.2.1_22D68_Restore.ipsw
This will take a couple of minutes since IPSW files are around 12.5 GB and that needs to be downloaded.
Use the tart
CLI's run
command to run the virtual machine. When running the virtual machine you must specify the name of the virtual machine.
tart run runner
You must complete setup of macOS in your virtual machine.
English
Tartelet is built with ❤️ by Shape in Denmark. Oh, and we are hiring 🤗