-
Notifications
You must be signed in to change notification settings - Fork 18
/
platform.go
32 lines (25 loc) · 974 Bytes
/
platform.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package platform
const (
// workingVolumeWorkingDir is a working directory relative to the CirrusDir().
workingVolumeWorkingDir = "working-dir"
// workingVolumeAgentBinary is the name of the agent binary relative to the CirrusDir().
workingVolumeAgentBinary = "cirrus-ci-agent"
// agentImageBase is used as a prefix to the agent's version to craft the full agent image name.
agentImageBase = "ghcr.io/cirruslabs/cirrus-ci-agent:v"
// DefaultAgentVersion represents the default version of the https://github.com/cirruslabs/cirrus-ci-agent to use.
DefaultAgentVersion = "1.106.0"
)
type CopyCommand struct {
Command []string
CopiesAgentToDir string
CopiesProjectFromDir string
CopiesProjectToDir string
}
type Platform interface {
ContainerAgentImage(version string) string
ContainerCopyCommand(populate bool) *CopyCommand
ContainerAgentPath() string
ContainerAgentVolumeDir() string
CirrusDir() string
GenericWorkingDir() string
}