dagger2gha
Generate Github Actions configurations from Dagger pipelines
Installation
dagger install github.com/shykes/dagger2gha@v0.1.0
Entrypoint
Return Type
Dagger2Gha !
Arguments
Name | Type | 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 | Dagger version to run in the Github Actions pipelines |
Example
dagger -m github.com/shykes/dagger2gha@6712d219fbe605892ff1854fd2e24472ed338156 call \
func (m *myModule) example() *Dagger2Gha {
return dag.
Dagger2gha()
}
@function
def example() -> dag.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 string
func (m *myModule) example(function string) *Dagger2Gha {
return dag.
Dagger2gha().
OnPullRequest(function)
}
@function
def example(function: str) -> dag.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 \
config
func (m *myModule) example() *Directory {
return dag.
Dagger2gha().
Config()
}
@function
def example() -> dagger.Directory:
return (
dag.dagger2gha()
.config()
)
@func()
example(): Directory {
return dag
.dagger2gha()
.config()
}