Dagger
Search

ci

No long description provided.

Installation

dagger install github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca

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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
 build
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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
 as-service
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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
 test
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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
 lint
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
dagger -m github.com/aweris/demo-devconf-cz-2024@59df1622b1896525f06f0c330f5e7a04911220ca call \
 ci
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()
}