cicd
No long description provided.
Installation
dagger install gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001baEntrypoint
Return Type
Cicd !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | name gives this pipeline a unique name. It may contain the project id and the build environment. |
| releaseProcess | Boolean | false | releaseProcess defines whether we want a release build or a debug build. |
| expectedBinaries | [String ! ] | [] | expectedBinaries defines what binaries we should expect from the compilation process. This is also used later during the packaging process. |
| maxHash | Integer | 7 | No description provided |
| sourceDir | Directory | - | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name stringfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name)
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
}Types
Cicd 🔗
cacheVolume() 🔗
where to store the build cache.
Return Type
CacheVolume ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string cache-volumefunc (m *MyModule) Example(name string) *dagger.CacheVolume {
return dag.
Cicd(name).
Cachevolume()
}@function
def example(name: str, ) -> dagger.CacheVolume:
return (
dag.cicd(name)
.cachevolume()
)@func()
example(name: string, ): CacheVolume {
return dag
.cicd(name)
.cacheVolume()
}artifactsVolume() 🔗
where to put the binaries from the compiler process into.
Return Type
CacheVolume ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string artifacts-volumefunc (m *MyModule) Example(name string) *dagger.CacheVolume {
return dag.
Cicd(name).
Artifactsvolume()
}@function
def example(name: str, ) -> dagger.CacheVolume:
return (
dag.cicd(name)
.artifactsvolume()
)@func()
example(name: string, ): CacheVolume {
return dag
.cicd(name)
.artifactsVolume()
}packagesVolume() 🔗
where to put the packages from the artifacts.
Return Type
CacheVolume ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string packages-volumefunc (m *MyModule) Example(name string) *dagger.CacheVolume {
return dag.
Cicd(name).
Packagesvolume()
}@function
def example(name: str, ) -> dagger.CacheVolume:
return (
dag.cicd(name)
.packagesvolume()
)@func()
example(name: string, ): CacheVolume {
return dag
.cicd(name)
.packagesVolume()
}releaseProcess() 🔗
Whether we want a release build or a debug build.
Return Type
Boolean ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string release-processfunc (m *MyModule) Example(ctx context.Context, name string) bool {
return dag.
Cicd(name).
Releaseprocess(ctx)
}@function
async def example(name: str, ) -> bool:
return await (
dag.cicd(name)
.releaseprocess()
)@func()
async example(name: string, ): Promise<boolean> {
return dag
.cicd(name)
.releaseProcess()
}expectedBinaries() 🔗
Return Type
[String ! ] ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string expected-binariesfunc (m *MyModule) Example(ctx context.Context, name string) []string {
return dag.
Cicd(name).
Expectedbinaries(ctx)
}@function
async def example(name: str, ) -> List[str]:
return await (
dag.cicd(name)
.expectedbinaries()
)@func()
async example(name: string, ): Promise<string[]> {
return dag
.cicd(name)
.expectedBinaries()
}semverMaxHash() 🔗
defines the maximum number of hash characters to use in the semver version.
Return Type
Integer ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string semver-max-hashfunc (m *MyModule) Example(ctx context.Context, name string) int {
return dag.
Cicd(name).
Semvermaxhash(ctx)
}@function
async def example(name: str, ) -> int:
return await (
dag.cicd(name)
.semvermaxhash()
)@func()
async example(name: string, ): Promise<number> {
return dag
.cicd(name)
.semverMaxHash()
}buildContainer() 🔗
BuildContainer is the container used for building the project.
Return Type
Container ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string build-containerfunc (m *MyModule) Example(name string) *dagger.Container {
return dag.
Cicd(name).
Buildcontainer()
}@function
def example(name: str, ) -> dagger.Container:
return (
dag.cicd(name)
.buildcontainer()
)@func()
example(name: string, ): Container {
return dag
.cicd(name)
.buildContainer()
}sourceDir() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string source-dirfunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Sourcedir()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.sourcedir()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.sourceDir()
}cargoBuild() 🔗
CargoBuild compiles the Rust project inside the build container using cargo build.
The function supports optional compilation of tests and benchmarks.
Return Type
Cicd !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| withTests | Boolean | false | No description provided |
| withBenches | Boolean | false | No description provided |
| withClean | Boolean | false | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string cargo-buildfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Cargobuild()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.cargobuild()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.cargoBuild()
}cargoTest() 🔗
CargoTest runs cargo test inside the build container.
By default (all flags false), it runs all tests (unit, integration, doc).
Specific flags restrict to those test types.
Return Type
Cicd !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| unit | Boolean | false | No description provided |
| integration | Boolean | false | No description provided |
| doc | Boolean | false | No description provided |
| features | [String ! ] | [] | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string cargo-testfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Cargotest()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.cargotest()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.cargoTest()
}getUser() 🔗
GetUser fetches a random user from randomuser.me filtered by gender. This is a demo function to test Dagger pipeline execution.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| gender | String ! | - | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string get-user --gender stringfunc (m *MyModule) Example(ctx context.Context, name string, gender string) string {
return dag.
Cicd(name).
Getuser(ctx, gender)
}@function
async def example(name: str, gender: str) -> str:
return await (
dag.cicd(name)
.getuser(gender)
)@func()
async example(name: string, gender: string): Promise<string> {
return dag
.cicd(name)
.getUser(gender)
}packageBookworm() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-bookwormfunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packagebookworm()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packagebookworm()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageBookworm()
}packageEl10() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-el-1-0func (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packageel10()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packageel10()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageEl10()
}packageEl8() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-el-8func (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packageel8()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packageel8()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageEl8()
}packageEl9() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-el-9func (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packageel9()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packageel9()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageEl9()
}packageJammy() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-jammyfunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packagejammy()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packagejammy()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageJammy()
}packageNoble() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-noblefunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packagenoble()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packagenoble()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageNoble()
}packageResolute() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-resolutefunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packageresolute()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packageresolute()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageResolute()
}packageTrixie() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string package-trixiefunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Cicd(name).
Packagetrixie()
}@function
def example(name: str, ) -> dagger.Directory:
return (
dag.cicd(name)
.packagetrixie()
)@func()
example(name: string, ): Directory {
return dag
.cicd(name)
.packageTrixie()
}withGolang() 🔗
WithRustJammy configures the build container with a Rust image based on Ubuntu Jammy.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-golangfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withgolang()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withgolang()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withGolang()
}withRustBookworm() 🔗
WithRustBookworm configures the build container with a Rust image based on Debian Bookworm.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-bookwormfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustbookworm()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustbookworm()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustBookworm()
}withRustBullseye() 🔗
WithRustBullseye configures the build container with a Rust image based on Debian Bullseye.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-bullseyefunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustbullseye()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustbullseye()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustBullseye()
}withRustEl10() 🔗
WithRustEl10 configures the build container with a Rust image based on Enterprise Linux 10.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-el-1-0func (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustel10()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustel10()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustEl10()
}withRustEl8() 🔗
WithRustEl8 configures the build container with a Rust image based on Enterprise Linux 8.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-el-8func (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustel8()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustel8()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustEl8()
}withRustEl9() 🔗
WithRustEl9 configures the build container with a Rust image based on Enterprise Linux 9.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-el-9func (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustel9()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustel9()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustEl9()
}withRustJammy() 🔗
WithRustJammy configures the build container with a Rust image based on Ubuntu Jammy.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-jammyfunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustjammy()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustjammy()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustJammy()
}withRustNoble() 🔗
WithRustNoble configures the build container with a Rust image based on Ubuntu Noble.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-noblefunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustnoble()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustnoble()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustNoble()
}withRustResolute() 🔗
WithRustResolute configures the build container with a Rust image based on Ubuntu Resolute.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-resolutefunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrustresolute()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrustresolute()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustResolute()
}withRustTrixie() 🔗
WithRustTrixie configures the build container with a Rust image based on Debian Trixie.
Return Type
Cicd ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@a3e698fc49259085009df9d73c265aa4d75001ba call \
--name string with-rust-trixiefunc (m *MyModule) Example(name string) *dagger.Cicd {
return dag.
Cicd(name).
Withrusttrixie()
}@function
def example(name: str, ) -> dagger.Cicd:
return (
dag.cicd(name)
.withrusttrixie()
)@func()
example(name: string, ): Cicd {
return dag
.cicd(name)
.withRustTrixie()
}