Dagger
Search

ci

No long description provided.

Installation

dagger install github.com/aweris/demo-devconf-cz-2024@6b9227848a6b358b2722b69baf4b2d4a35e219d0

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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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@6b9227848a6b358b2722b69baf4b2d4a35e219d0 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()
}