mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-25 08:15:02 +01:00
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:
18
pkg/tart/env_darwin.go
Normal file
18
pkg/tart/env_darwin.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user