summaryrefslogtreecommitdiffstats
path: root/pkg/runner/runner.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/runner.go')
-rw-r--r--pkg/runner/runner.go80
1 files changed, 41 insertions, 39 deletions
diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go
index e9f00e2..015c364 100644
--- a/pkg/runner/runner.go
+++ b/pkg/runner/runner.go
@@ -22,50 +22,52 @@ type Runner interface {
// Config contains the config for a new runner
type Config struct {
- Actor string // the user that triggered the event
- Workdir string // path to working directory
- ActionCacheDir string // path used for caching action contents
- BindWorkdir bool // bind the workdir to the job container
- EventName string // name of event to run
- EventPath string // path to JSON file to use for event.json in containers
- DefaultBranch string // name of the main branch for this repository
- ReuseContainers bool // reuse containers to maintain state
- ForcePull bool // force pulling of the image, even if already present
- ForceRebuild bool // force rebuilding local docker image action
- LogOutput bool // log the output from docker run
- JSONLogger bool // use json or text logger
- LogPrefixJobID bool // switches from the full job name to the job id
- Env map[string]string // env for containers
- Inputs map[string]string // manually passed action inputs
- Secrets map[string]string // list of secrets
- Vars map[string]string // list of vars
- Token string // GitHub token
- InsecureSecrets bool // switch hiding output when printing to terminal
- Platforms map[string]string // list of platforms
- Privileged bool // use privileged mode
- UsernsMode string // user namespace to use
- ContainerArchitecture string // Desired OS/architecture platform for running containers
- ContainerDaemonSocket string // Path to Docker daemon socket
- ContainerOptions string // Options for the job container
- UseGitIgnore bool // controls if paths in .gitignore should not be copied into container, default true
- GitHubInstance string // GitHub instance to use, default "github.com"
- ContainerCapAdd []string // list of kernel capabilities to add to the containers
- ContainerCapDrop []string // list of kernel capabilities to remove from the containers
- AutoRemove bool // controls if the container is automatically removed upon workflow completion
- ArtifactServerPath string // the path where the artifact server stores uploads
- ArtifactServerAddr string // the address the artifact server binds to
- ArtifactServerPort string // the port the artifact server binds to
- NoSkipCheckout bool // do not skip actions/checkout
- RemoteName string // remote name in local git repo config
- ReplaceGheActionWithGithubCom []string // Use actions from GitHub Enterprise instance to GitHub
- ReplaceGheActionTokenWithGithubCom string // Token of private action repo on GitHub.
- Matrix map[string]map[string]bool // Matrix config to run
+ Actor string // the user that triggered the event
+ Workdir string // path to working directory
+ ActionCacheDir string // path used for caching action contents
+ ActionOfflineMode bool // when offline, use caching action contents
+ BindWorkdir bool // bind the workdir to the job container
+ EventName string // name of event to run
+ EventPath string // path to JSON file to use for event.json in containers
+ DefaultBranch string // name of the main branch for this repository
+ ReuseContainers bool // reuse containers to maintain state
+ ForcePull bool // force pulling of the image, even if already present
+ ForceRebuild bool // force rebuilding local docker image action
+ LogOutput bool // log the output from docker run
+ JSONLogger bool // use json or text logger
+ LogPrefixJobID bool // switches from the full job name to the job id
+ Env map[string]string // env for containers
+ Inputs map[string]string // manually passed action inputs
+ Secrets map[string]string // list of secrets
+ Vars map[string]string // list of vars
+ Token string // GitHub token
+ InsecureSecrets bool // switch hiding output when printing to terminal
+ Platforms map[string]string // list of platforms
+ Privileged bool // use privileged mode
+ UsernsMode string // user namespace to use
+ ContainerArchitecture string // Desired OS/architecture platform for running containers
+ ContainerDaemonSocket string // Path to Docker daemon socket
+ ContainerOptions string // Options for the job container
+ UseGitIgnore bool // controls if paths in .gitignore should not be copied into container, default true
+ GitHubInstance string // GitHub instance to use, default "github.com"
+ ContainerCapAdd []string // list of kernel capabilities to add to the containers
+ ContainerCapDrop []string // list of kernel capabilities to remove from the containers
+ AutoRemove bool // controls if the container is automatically removed upon workflow completion
+ ArtifactServerPath string // the path where the artifact server stores uploads
+ ArtifactServerAddr string // the address the artifact server binds to
+ ArtifactServerPort string // the port the artifact server binds to
+ NoSkipCheckout bool // do not skip actions/checkout
+ RemoteName string // remote name in local git repo config
+ ReplaceGheActionWithGithubCom []string // Use actions from GitHub Enterprise instance to GitHub
+ ReplaceGheActionTokenWithGithubCom string // Token of private action repo on GitHub.
+ Matrix map[string]map[string]bool // Matrix config to run
+ ContainerNetworkMode docker_container.NetworkMode // the network mode of job containers (the value of --network)
+ ActionCache ActionCache // Use a custom ActionCache Implementation
PresetGitHubContext *model.GithubContext // the preset github context, overrides some fields like DefaultBranch, Env, Secrets etc.
EventJSON string // the content of JSON file to use for event.json in containers, overrides EventPath
ContainerNamePrefix string // the prefix of container name
ContainerMaxLifetime time.Duration // the max lifetime of job containers
- ContainerNetworkMode docker_container.NetworkMode // the network mode of job containers (the value of --network)
DefaultActionInstance string // the default actions web site
PlatformPicker func(labels []string) string // platform picker, it will take precedence over Platforms if isn't nil
JobLoggerLevel *log.Level // the level of job logger