gha
No long description provided.
Installation
dagger install github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7Entrypoint
Return Type
Gha Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
func (m *MyModule) Example() *dagger.Gha {
return dag.
Gha()
}@function
def example() -> dagger.Gha:
return (
dag.gha()
)@func()
example(): Gha {
return dag
.gha()
}Types
Gha 🔗
withPipeline() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name stringfunc (m *MyModule) Example(name string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name)
}@function
def example(name: str) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
)@func()
example(name: string): GhaPipeline {
return dag
.gha()
.withPipeline(name)
}pipelines() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pipelines | [Pipeline ! ] ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(pipelines []*dagger.GhaPipeline) *dagger.File {
return dag.
Gha().
Pipelines(pipelines)
}@function
def example(pipelines: List[dagger.GhaPipeline]) -> dagger.File:
return (
dag.gha()
.pipelines(pipelines)
)@func()
example(pipelines: GhaPipeline[]): File {
return dag
.gha()
.pipelines(pipelines)
}Pipeline 🔗
runner() 🔗
Return Type
String ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
runnerfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
Gha().
WithPipeline(name).
Runner(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.gha()
.with_pipeline(name)
.runner()
)@func()
async example(name: string): Promise<string> {
return dag
.gha()
.withPipeline(name)
.runner()
}changes() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
changesfunc (m *MyModule) Example(ctx context.Context, name string) []string {
return dag.
Gha().
WithPipeline(name).
Changes(ctx)
}@function
async def example(name: str) -> List[str]:
return await (
dag.gha()
.with_pipeline(name)
.changes()
)@func()
async example(name: string): Promise<string[]> {
return dag
.gha()
.withPipeline(name)
.changes()
}module() 🔗
Return Type
String ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
modulefunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
Gha().
WithPipeline(name).
Module(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.gha()
.with_pipeline(name)
.module()
)@func()
async example(name: string): Promise<string> {
return dag
.gha()
.withPipeline(name)
.module()
}name() 🔗
Return Type
String ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
namefunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
Gha().
WithPipeline(name).
Name(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.gha()
.with_pipeline(name)
.name()
)@func()
async example(name: string): Promise<string> {
return dag
.gha()
.withPipeline(name)
.name()
}prActions() 🔗
Return Type
[Enum ! ] ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
pr-actionsfunc (m *MyModule) Example(name string) [] {
return dag.
Gha().
WithPipeline(name).
PrActions()
}@function
def example(name: str) -> List[]:
return (
dag.gha()
.with_pipeline(name)
.pr_actions()
)@func()
example(name: string): [] {
return dag
.gha()
.withPipeline(name)
.prActions()
}onPr() 🔗
Return Type
Boolean ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
on-prfunc (m *MyModule) Example(ctx context.Context, name string) bool {
return dag.
Gha().
WithPipeline(name).
OnPr(ctx)
}@function
async def example(name: str) -> bool:
return await (
dag.gha()
.with_pipeline(name)
.on_pr()
)@func()
async example(name: string): Promise<boolean> {
return dag
.gha()
.withPipeline(name)
.onPr()
}onPush() 🔗
Return Type
Boolean ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
on-pushfunc (m *MyModule) Example(ctx context.Context, name string) bool {
return dag.
Gha().
WithPipeline(name).
OnPush(ctx)
}@function
async def example(name: str) -> bool:
return await (
dag.gha()
.with_pipeline(name)
.on_push()
)@func()
async example(name: string): Promise<boolean> {
return dag
.gha()
.withPipeline(name)
.onPush()
}branches() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
branchesfunc (m *MyModule) Example(ctx context.Context, name string) []string {
return dag.
Gha().
WithPipeline(name).
Branches(ctx)
}@function
async def example(name: str) -> List[str]:
return await (
dag.gha()
.with_pipeline(name)
.branches()
)@func()
async example(name: string): Promise<string[]> {
return dag
.gha()
.withPipeline(name)
.branches()
}exec() 🔗
Return Type
String ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
execfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
Gha().
WithPipeline(name).
Exec(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.gha()
.with_pipeline(name)
.exec()
)@func()
async example(name: string): Promise<string> {
return dag
.gha()
.withPipeline(name)
.exec()
}after() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
afterfunc (m *MyModule) Example(ctx context.Context, name string) []string {
return dag.
Gha().
WithPipeline(name).
After(ctx)
}@function
async def example(name: str) -> List[str]:
return await (
dag.gha()
.with_pipeline(name)
.after()
)@func()
async example(name: string): Promise<string[]> {
return dag
.gha()
.withPipeline(name)
.after()
}withRunsOn() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
with-runs-on --name stringfunc (m *MyModule) Example(name string, name1 string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
WithRunsOn(name1)
}@function
def example(name: str, name1: str) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.with_runs_on(name1)
)@func()
example(name: string, name1: string): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.withRunsOn(name1)
}withOnPullRequest() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| actions | [Enum ! ] ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
with-on-pull-requestfunc (m *MyModule) Example(name string, actions []) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
WithOnPullRequest(actions)
}@function
def example(name: str, actions: List[]) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.with_on_pull_request(actions)
)@func()
example(name: string, actions: []): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.withOnPullRequest(actions)
}withOnChanges() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| paths | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
with-on-changes --paths string1 --paths string2func (m *MyModule) Example(name string, paths []string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
WithOnChanges(paths)
}@function
def example(name: str, paths: List[str]) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.with_on_changes(paths)
)@func()
example(name: string, paths: string[]): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.withOnChanges(paths)
}withOnPush() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| branches | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
with-on-push --branches string1 --branches string2func (m *MyModule) Example(name string, branches []string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
WithOnPush(branches)
}@function
def example(name: str, branches: List[str]) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.with_on_push(branches)
)@func()
example(name: string, branches: string[]): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.withOnPush(branches)
}withModule() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | String ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
with-module --path stringfunc (m *MyModule) Example(name string, path string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
WithModule(path)
}@function
def example(name: str, path: str) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.with_module(path)
)@func()
example(name: string, path: string): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.withModule(path)
}call() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| exec | String ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
call --exec stringfunc (m *MyModule) Example(name string, exec string) *dagger.GhaPipeline {
return dag.
Gha().
WithPipeline(name).
Call(exec)
}@function
def example(name: str, exec: str) -> dagger.GhaPipeline:
return (
dag.gha()
.with_pipeline(name)
.call(exec)
)@func()
example(name: string, exec: string): GhaPipeline {
return dag
.gha()
.withPipeline(name)
.call(exec)
}after() 🔗
Return Type
Pipeline !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| pipelines | [Pipeline ! ] ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/modules/gha@1cae77909b2ad0ace74301545a39d50d8af431b7 call \
with-pipeline --name string \
afterfunc (m *MyModule) Example(ctx context.Context, name string) []string {
return dag.
Gha().
WithPipeline(name).
After(ctx)
}@function
async def example(name: str) -> List[str]:
return await (
dag.gha()
.with_pipeline(name)
.after()
)@func()
async example(name: string): Promise<string[]> {
return dag
.gha()
.withPipeline(name)
.after()
}