Dagger
Search

gha

No long description provided.

Installation

dagger install github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a

Entrypoint

Return Type
Gha
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
func (m *myModule) example() *Gha  {
	return dag.
			Gha()
}
@function
def example() -> dag.Gha:
	return (
		dag.gha()
	)
@func()
example(): Gha {
	return dag
		.gha()
}

Types

Gha 🔗

pipeline() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name)
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
}

pipelines() 🔗

Return Type
File !
Arguments
NameTypeDefault ValueDescription
pipelines[Pipeline ! ] !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(pipelines []*GhaPipeline) *File  {
	return dag.
			Gha().
			Pipelines(pipelines)
}
@function
def example(pipelines: List[dag.GhaPipeline]) -> dagger.File:
	return (
		dag.gha()
		.pipelines(pipelines)
	)
@func()
example(pipelines: GhaPipeline[]): File {
	return dag
		.gha()
		.pipelines(pipelines)
}

Pipeline 🔗

runsOn() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 runs-on --name string
func (m *myModule) example(name string, name1 string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			RunsOn(name1)
}
@function
def example(name: str, name1: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.runs_on(name1)
	)
@func()
example(name: string, name1: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.runsOn(name1)
}

onPullRequest() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
actions[Enum ! ] !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 on-pull-request
func (m *myModule) example(name string, actions []) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnPullRequest(actions)
}
@function
def example(name: str, actions: List[]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_pull_request(actions)
	)
@func()
example(name: string, actions: []): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onPullRequest(actions)
}

onPullRequestAgainst() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
actions[Enum ! ] !-No description provided
branches[String ! ] !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 on-pull-request-against --branches string1 --branches string2
func (m *myModule) example(name string, actions [], branches []string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnPullRequestAgainst(actions, branches)
}
@function
def example(name: str, actions: List[], branches: List[str]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_pull_request_against(actions, branches)
	)
@func()
example(name: string, actions: [], branches: string[]): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onPullRequestAgainst(actions, branches)
}

onChanges() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
paths[String ! ] !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 on-changes --paths string1 --paths string2
func (m *myModule) example(name string, paths []string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnChanges(paths)
}
@function
def example(name: str, paths: List[str]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_changes(paths)
	)
@func()
example(name: string, paths: string[]): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onChanges(paths)
}

onPush() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
branches[String ! ] !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 on-push --branches string1 --branches string2
func (m *myModule) example(name string, branches []string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnPush(branches)
}
@function
def example(name: str, branches: List[str]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_push(branches)
	)
@func()
example(name: string, branches: string[]): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onPush(branches)
}

module() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
pathString !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 module --path string
func (m *myModule) example(name string, path string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			Module(path)
}
@function
def example(name: str, path: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.module(path)
	)
@func()
example(name: string, path: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.module(path)
}

call() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
execString !-No description provided
Example
dagger -m github.com/franela/pocketci/modules/gha@128391da299c7f107283b8872d64a2c28fc9216a call \
 pipeline --name string \
 call --exec string
func (m *myModule) example(name string, exec string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			Call(exec)
}
@function
def example(name: str, exec: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.call(exec)
	)
@func()
example(name: string, exec: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.call(exec)
}

after() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
pipelines[Pipeline ! ] !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(name string, pipelines []*GhaPipeline) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			After(pipelines)
}
@function
def example(name: str, pipelines: List[dag.GhaPipeline]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.after(pipelines)
	)
@func()
example(name: string, pipelines: GhaPipeline[]): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.after(pipelines)
}