-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopts.go
46 lines (34 loc) · 1.11 KB
/
opts.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
// FIXME: currently Object types can't be used as a type parameter. So, we can't use WorkflowOpts as a type parameter
// refactor this code when dagger supports Opt struct types as type parameters.
type WorkflowRunOpts struct {
// External workflow file to run against the repository.
WorkflowFile *File
// Name or path of the workflow to run.
Workflow string
// Job name to run. If not specified, all jobs in the workflow will be run.
Job string
}
type EventOpts struct {
// Event name.
Name string
// File containing the event data in JSON format.
File *File
}
type RunnerOpts struct {
// Base container for the runner.
Ctr *Container
// Debug flag for the runner.
Debug bool
// Enables native docker support to able to run docker commands directly in the workflow.
UseNativeDocker bool
// Docker host to use for the runner.
DockerHost string
// Enables docker-in-dagger support to be able to run docker commands isolated from the host.
// Enabling DinD may lead to longer execution times.
UseDind bool
}
type SecretOpts struct {
// GitHub token to use for the runner.
Token *Secret
}