dagger2gha
Generate Github Actions configurations from Dagger pipelines
Installation
dagger install github.com/shykes/dagger2gha@v0.1.0Entrypoint
Return Type
Dagger2Gha !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| publicToken | String | - | Public Dagger Cloud token, for open-source projects. DO NOT PASS YOUR PRIVATE DAGGER CLOUD TOKEN! This is for a special "public" token which can safely be shared publicly. To get one, contact support@dagger.io |
| daggerVersion | String | "latest" | Dagger version to run in the Github Actions pipelines |
Example
dagger -m github.com/shykes/dagger2gha@6712d219fbe605892ff1854fd2e24472ed338156 call \
func (m *MyModule) Example() *dagger.Dagger2Gha {
return dag.
Dagger2gha()
}@function
def example() -> dagger.Dagger2Gha:
return (
dag.dagger2gha()
)@func()
example(): Dagger2Gha {
return dag
.dagger2gha()
}Types
Dagger2Gha 🔗
onPullRequest() 🔗
Return Type
Dagger2Gha !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| branch | String | "main" | No description provided |
| module | String | "." | No description provided |
| function | String ! | - | No description provided |
| args | [String ! ] | - | No description provided |
| noCheckout | Boolean | - | No description provided |
Example
dagger -m github.com/shykes/dagger2gha@6712d219fbe605892ff1854fd2e24472ed338156 call \
on-pull-request --function stringfunc (m *MyModule) Example(function string) *dagger.Dagger2Gha {
return dag.
Dagger2gha().
OnPullRequest(function)
}@function
def example(function: str) -> dagger.Dagger2Gha:
return (
dag.dagger2gha()
.on_pull_request(function)
)@func()
example(function: string): Dagger2Gha {
return dag
.dagger2gha()
.onPullRequest(function)
}config() 🔗
Return Type
Directory ! Example
dagger -m github.com/shykes/dagger2gha@6712d219fbe605892ff1854fd2e24472ed338156 call \
configfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Dagger2gha().
Config()
}@function
def example() -> dagger.Directory:
return (
dag.dagger2gha()
.config()
)@func()
example(): Directory {
return dag
.dagger2gha()
.config()
}