ci
No long description provided.
Installation
dagger install github.com/aweris/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88Entrypoint
Return Type
Ci !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | The source directory to be used for the ci. If not provided, the remote repository will be checked out with the provided ref. |
| ref | String | "main" | 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/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
func (m *MyModule) Example() *dagger.Ci {
return dag.
Ci()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| platform | Scalar | - | The platform to build the container for. |
| version | String | "dev" | The version of the application. |
Example
dagger -m github.com/aweris/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
buildfunc (m *MyModule) Example() *dagger.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/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
as-servicefunc (m *MyModule) Example() *dagger.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/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
testfunc (m *MyModule) Example() *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| linterVersion | String | "v1.59.0" | The version of golangci-lint to use. |
Example
dagger -m github.com/aweris/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
lintfunc (m *MyModule) Example() *dagger.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/tt@17b5549970a2a71550b5e685cf24fbe10cd35d88 call \
cifunc (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()
}