traderepublic / Cilicon

🛠️ Self-Hosted ephemeral macOS CI on Apple Silicon
MIT License
969 stars 29 forks source link

Tagging GitHub runners #59

Closed nmichlo closed 2 weeks ago

nmichlo commented 2 weeks ago

I need to add custom tags to the GitHub runners, but I can't seem to do this. Nothing seems to be listed in the config?

Preferably, instead of just appending pages, we should be able to overwrite all the runner tags, e.g. instead of self-hosted we can do self-hosted-mac?

nmichlo commented 2 weeks ago

Working example of ~/cilicon.yml

source: oci://ghcr.io/cirruslabs/macos-sonoma-base:latest
provisioner:
  type: github
  config:
    appId: 0000000
    organization: org-name
    privateKeyPath: /absolute/path/to/private-key.pem
    runnerGroup: group-name  # create a group with this name online, e.g. to only allow ephemeral runners to be used by specific repo.
    extraLabels: ["label1", "label2"]

https://github.com/traderepublic/Cilicon/blob/4711392cd06d2f2cd55168ae9bf78556f12df320/Cilicon/Config/GithubProvisionerConfig.swift#L3-L23