Dagger
Search

ci

No long description provided.

Installation

dagger install github.com/aweris/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88

Entrypoint

Return Type
Ci !
Arguments
NameTypeDescription
sourceDirectory The source directory to be used for the ci. If not provided, the remote repository will be checked out with the provided ref.
refString The reference to check out remote repository if the local source directory is not provided. `source` takes precedence over `ref`.
Example
func (m *myModule) example() *Ci  {
	return dag.
			Ci()
}
@function
def example() -> dag.Ci:
	return (
		dag.ci()
	)
@func()
example(): Ci {
	return dag
		.ci()
}

Types

Ci 🔗

build() 🔗

Builds the application with the provided platform and version.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -The platform to build the container for.
versionString "dev"The version of the application.
Example
func (m *myModule) example() *Container  {
	return dag.
			Ci().
			Build()
}
@function
def example() -> dagger.Container:
	return (
		dag.ci()
		.build()
	)
@func()
example(): Container {
	return dag
		.ci()
		.build()
}

asService() 🔗

Returns the demo application as a service.

Return Type
Service !
Example
func (m *myModule) example() *Service  {
	return dag.
			Ci().
			AsService()
}
@function
def example() -> dagger.Service:
	return (
		dag.ci()
		.as_service()
	)
@func()
example(): Service {
	return dag
		.ci()
		.asService()
}

test() 🔗

Runs the tests for the application.

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			Ci().
			Test()
}
@function
def example() -> dagger.Container:
	return (
		dag.ci()
		.test()
	)
@func()
example(): Container {
	return dag
		.ci()
		.test()
}

lint() 🔗

Lints the application with golangci-lint.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
linterVersionString "v1.59.0"The version of golangci-lint to use.
Example
func (m *myModule) example() *Container  {
	return dag.
			Ci().
			Lint()
}
@function
def example() -> dagger.Container:
	return (
		dag.ci()
		.lint()
	)
@func()
example(): Container {
	return dag
		.ci()
		.lint()
}

ci() 🔗

Runs the ci pipeline.

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Ci().
			Ci(ctx)
}
@function
async def example() -> None:
	return await (
		dag.ci()
		.ci()
	)
@func()
async example(): Promise<void> {
	return dag
		.ci()
		.ci()
}