feat: tart macOS vm's as job container (#33)

adds the tart:// protocol to platform mapping

e.g. `-P macos-14=tart://ghcr.io/cirruslabs/macos-sonoma-base:latest` if you have a mac.

`add-path` is probably broken
This commit is contained in:
ChristopherHX
2025-01-29 17:27:04 +01:00
committed by GitHub
parent 592dc4bf2c
commit 677e073448
10 changed files with 832 additions and 26 deletions

18
pkg/tart/env_darwin.go Normal file
View File

@@ -0,0 +1,18 @@
package tart
type Env struct {
JobID string
JobImage string
FailureExitCode int
Registry *Registry
}
type Registry struct {
Address string
User string
Password string
}
func (e Env) VirtualMachineID() string {
return e.JobID
}