gale
No long description provided.
Installation
dagger install github.com/aweris/gale/daggerverse/gale@051b8aec2704cd8a4e2a6633be658f8d4e16a893Entrypoint
Return Type
Gale Example
dagger -m github.com/aweris/gale/daggerverse/gale@051b8aec2704cd8a4e2a6633be658f8d4e16a893 call \
func (m *MyModule) Example() *dagger.Gale {
return dag.
Gale()
}@function
def example() -> dagger.Gale:
return (
dag.gale()
)@func()
example(): Gale {
return dag
.gale()
}Types
WorkflowRun 🔗
runner() 🔗
Base container to use for the workflow run.
Return Type
RunnerContainer ! Example
Function GaleWorkflowRun.Runner is not accessible from the gale moduleFunction GaleWorkflowRun.Runner is not accessible from the gale moduleFunction GaleWorkflowRun.Runner is not accessible from the gale moduleFunction GaleWorkflowRun.Runner is not accessible from the gale modulerunCachePath() 🔗
Workflow run cache path to mount to runner containers.
Return Type
StringKind ! Example
Function GaleWorkflowRun.RunCachePath is not accessible from the gale moduleFunction GaleWorkflowRun.RunCachePath is not accessible from the gale moduleFunction GaleWorkflowRun.RunCachePath is not accessible from the gale moduleFunction GaleWorkflowRun.RunCachePath is not accessible from the gale modulerunCacheVolume() 🔗
Workflow run cache volume to share data between jobs in the same workflow run and keep the data after the workflow
Return Type
CacheVolume ! Example
Function GaleWorkflowRun.RunCacheVolume is not accessible from the gale moduleFunction GaleWorkflowRun.RunCacheVolume is not accessible from the gale moduleFunction GaleWorkflowRun.RunCacheVolume is not accessible from the gale moduleFunction GaleWorkflowRun.RunCacheVolume is not accessible from the gale moduleconfig() 🔗
Configuration of the workflow run.
Return Type
WorkflowRunConfig ! Example
Function GaleWorkflowRun.Config is not accessible from the gale moduleFunction GaleWorkflowRun.Config is not accessible from the gale moduleFunction GaleWorkflowRun.Config is not accessible from the gale moduleFunction GaleWorkflowRun.Config is not accessible from the gale modulesync() 🔗
Sync runs the workflow and returns the container that ran the workflow.
Return Type
Container ! Example
Function GaleWorkflowRun.sync is not accessible from the gale moduleFunction GaleWorkflowRun.sync is not accessible from the gale moduleFunction GaleWorkflowRun.sync is not accessible from the gale moduleFunction GaleWorkflowRun.sync is not accessible from the gale moduledirectory() 🔗
Directory returns the directory of the workflow run information.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| includeRepo | BooleanKind | - | No description provided |
| includeSecrets | BooleanKind | - | No description provided |
| includeEvent | BooleanKind | - | No description provided |
| includeArtifacts | BooleanKind | - | No description provided |
Example
Function GaleWorkflowRun.directory is not accessible from the gale moduleFunction GaleWorkflowRun.directory is not accessible from the gale moduleFunction GaleWorkflowRun.directory is not accessible from the gale moduleFunction GaleWorkflowRun.directory is not accessible from the gale moduleGale 🔗
runner() 🔗
Runner represents a runner to run a Github Actions workflow in.
Return Type
Runner ! Example
dagger -m github.com/aweris/gale/daggerverse/gale@051b8aec2704cd8a4e2a6633be658f8d4e16a893 call \
runnerfunc (m *MyModule) Example() {
return dag.
Gale().
Runner()
}@function
def example() -> :
return (
dag.gale()
.runner()
)@func()
example(): {
return dag
.gale()
.runner()
}list() 🔗
List returns a list of workflows and their jobs with the given options.
Return Type
StringKind !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| repo | StringKind | - | No description provided |
| tag | StringKind | - | No description provided |
| branch | StringKind | - | No description provided |
| workflowsDir | StringKind | - | No description provided |
Example
dagger -m github.com/aweris/gale/daggerverse/gale@051b8aec2704cd8a4e2a6633be658f8d4e16a893 call \
listfunc (m *MyModule) Example() {
return dag.
Gale().
List()
}@function
def example() -> :
return (
dag.gale()
.list()
)@func()
example(): {
return dag
.gale()
.list()
}run() 🔗
Run runs the workflow with the given options.
Return Type
WorkflowRun !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| repo | StringKind | - | No description provided |
| tag | StringKind | - | No description provided |
| branch | StringKind | - | No description provided |
| workflowsDir | StringKind | - | No description provided |
| workflowFile | File | - | No description provided |
| workflow | StringKind | - | No description provided |
| job | StringKind | - | No description provided |
| event | StringKind | - | No description provided |
| eventFile | File | - | No description provided |
| container | Container | - | No description provided |
| runnerDebug | BooleanKind | - | No description provided |
| token | Secret | - | No description provided |
Example
dagger -m github.com/aweris/gale/daggerverse/gale@051b8aec2704cd8a4e2a6633be658f8d4e16a893 call \
runfunc (m *MyModule) Example() {
return dag.
Gale().
Run()
}@function
def example() -> :
return (
dag.gale()
.run()
)@func()
example(): {
return dag
.gale()
.run()
}Runner 🔗
container() 🔗
Container initializes a new runner container with the given options.
Return Type
RunnerContainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container | - | No description provided |
| source | Directory | - | No description provided |
| repo | StringKind | - | No description provided |
| tag | StringKind | - | No description provided |
| branch | StringKind | - | No description provided |
Example
Function GaleRunner.container is not accessible from the gale moduleFunction GaleRunner.container is not accessible from the gale moduleFunction GaleRunner.container is not accessible from the gale moduleFunction GaleRunner.container is not accessible from the gale moduleRunnerContainer 🔗
runnerId() 🔗
Unique identifier for the runner container.
Return Type
StringKind ! Example
Function GaleRunnerContainer.RunnerID is not accessible from the gale moduleFunction GaleRunnerContainer.RunnerID is not accessible from the gale moduleFunction GaleRunnerContainer.RunnerID is not accessible from the gale moduleFunction GaleRunnerContainer.RunnerID is not accessible from the gale modulectr() 🔗
Initialized container to run the workflow in.
Return Type
Container ! Example
Function GaleRunnerContainer.Ctr is not accessible from the gale moduleFunction GaleRunnerContainer.Ctr is not accessible from the gale moduleFunction GaleRunnerContainer.Ctr is not accessible from the gale moduleFunction GaleRunnerContainer.Ctr is not accessible from the gale modulecontainer() 🔗
Container initializes a new runner container with the given options.
Return Type
Container ! Example
Function GaleRunnerContainer.container is not accessible from the gale moduleFunction GaleRunnerContainer.container is not accessible from the gale moduleFunction GaleRunnerContainer.container is not accessible from the gale moduleFunction GaleRunnerContainer.container is not accessible from the gale moduleWorkflowRunConfig 🔗
workflowFile() 🔗
WorkflowFile is external workflow file to run.
Return Type
File ! Example
Function GaleWorkflowRunConfig.WorkflowFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.WorkflowFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.WorkflowFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.WorkflowFile is not accessible from the gale moduleworkflow() 🔗
Workflow to run.
Return Type
StringKind ! Example
Function GaleWorkflowRunConfig.Workflow is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Workflow is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Workflow is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Workflow is not accessible from the gale modulejob() 🔗
Job name to run. If empty, all jobs will be run.
Return Type
StringKind ! Example
Function GaleWorkflowRunConfig.Job is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Job is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Job is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Job is not accessible from the gale moduleevent() 🔗
Name of the event that triggered the workflow. e.g. push
Return Type
StringKind ! Example
Function GaleWorkflowRunConfig.Event is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Event is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Event is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Event is not accessible from the gale moduleeventFile() 🔗
File with the complete webhook event payload.
Return Type
File ! Example
Function GaleWorkflowRunConfig.EventFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.EventFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.EventFile is not accessible from the gale moduleFunction GaleWorkflowRunConfig.EventFile is not accessible from the gale modulerunnerDebug() 🔗
Enables debug mode.
Return Type
BooleanKind ! Example
Function GaleWorkflowRunConfig.RunnerDebug is not accessible from the gale moduleFunction GaleWorkflowRunConfig.RunnerDebug is not accessible from the gale moduleFunction GaleWorkflowRunConfig.RunnerDebug is not accessible from the gale moduleFunction GaleWorkflowRunConfig.RunnerDebug is not accessible from the gale moduletoken() 🔗
GitHub token to use for authentication.
Return Type
Secret ! Example
Function GaleWorkflowRunConfig.Token is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Token is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Token is not accessible from the gale moduleFunction GaleWorkflowRunConfig.Token is not accessible from the gale module