cicd
No long description provided.
Installation
dagger install gitlab.com/ds_2/dagger-verse/cicd@v0.4.1Entrypoint
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. |
| sourceDir | Directory | - | No description provided |
| volumeVersion | Integer ! | 1 | the volume version. Used to differentiate between different builds of the same pipeline. |
| cacheBuster | String | "" | cacheBuster is a unique value that invalidates all container exec caches when changed. Empty string means no cache busting. |
| maxHash | Integer | 7 | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integerfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion)
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
}Types
Cicd 🔗
cacheVolume() 🔗
where to store the build cache.
Return Type
CacheVolume ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer cache-volumefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.CacheVolume {
return dag.
Cicd(name, volumeVersion).
Cachevolume()
}@function
def example(name: str, volumeversion: int, ) -> dagger.CacheVolume:
return (
dag.cicd(name, volumeversion)
.cachevolume()
)@func()
example(name: string, volumeVersion: number, ): CacheVolume {
return dag
.cicd(name, volumeVersion)
.cacheVolume()
}packagesVolume() 🔗
where to put the binaries from the compiler process into.
Return Type
CacheVolume ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer packages-volumefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.CacheVolume {
return dag.
Cicd(name, volumeVersion).
Packagesvolume()
}@function
def example(name: str, volumeversion: int, ) -> dagger.CacheVolume:
return (
dag.cicd(name, volumeversion)
.packagesvolume()
)@func()
example(name: string, volumeVersion: number, ): CacheVolume {
return dag
.cicd(name, volumeVersion)
.packagesVolume()
}cacheBuster() 🔗
CacheBuster is a string that, when changed, invalidates all container-level caches. Set it to a unique value (e.g. CI job ID, timestamp, git commit) to force re-execution of all steps. Empty string means no cache busting.
Return Type
String ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer cache-busterfunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int) string {
return dag.
Cicd(name, volumeVersion).
Cachebuster(ctx)
}@function
async def example(name: str, volumeversion: int, ) -> str:
return await (
dag.cicd(name, volumeversion)
.cachebuster()
)@func()
async example(name: string, volumeVersion: number, ): Promise<string> {
return dag
.cicd(name, volumeVersion)
.cacheBuster()
}releaseProcess() 🔗
Whether we want a release build or a debug build.
Return Type
Boolean ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer release-processfunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int) bool {
return dag.
Cicd(name, volumeVersion).
Releaseprocess(ctx)
}@function
async def example(name: str, volumeversion: int, ) -> bool:
return await (
dag.cicd(name, volumeversion)
.releaseprocess()
)@func()
async example(name: string, volumeVersion: number, ): Promise<boolean> {
return dag
.cicd(name, volumeVersion)
.releaseProcess()
}useLockfile() 🔗
UseLockfile indicates to rely on lock files for dependency management.
Return Type
Boolean ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer use-lockfilefunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int) bool {
return dag.
Cicd(name, volumeVersion).
Uselockfile(ctx)
}@function
async def example(name: str, volumeversion: int, ) -> bool:
return await (
dag.cicd(name, volumeversion)
.uselockfile()
)@func()
async example(name: string, volumeVersion: number, ): Promise<boolean> {
return dag
.cicd(name, volumeVersion)
.useLockfile()
}expectedBinaries() 🔗
Return Type
[String ! ] ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer expected-binariesfunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int) []string {
return dag.
Cicd(name, volumeVersion).
Expectedbinaries(ctx)
}@function
async def example(name: str, volumeversion: int, ) -> List[str]:
return await (
dag.cicd(name, volumeversion)
.expectedbinaries()
)@func()
async example(name: string, volumeVersion: number, ): Promise<string[]> {
return dag
.cicd(name, volumeVersion)
.expectedBinaries()
}buildContainer() 🔗
BuildContainer is the container used for building the project.
Return Type
Container ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer build-containerfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Container {
return dag.
Cicd(name, volumeVersion).
Buildcontainer()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Container:
return (
dag.cicd(name, volumeversion)
.buildcontainer()
)@func()
example(name: string, volumeVersion: number, ): Container {
return dag
.cicd(name, volumeVersion)
.buildContainer()
}sourceDir() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer source-dirfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Sourcedir()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.sourcedir()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.sourceDir()
}semverMaxHash() 🔗
Return Type
Integer ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer semver-max-hashfunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int) int {
return dag.
Cicd(name, volumeVersion).
Semvermaxhash(ctx)
}@function
async def example(name: str, volumeversion: int, ) -> int:
return await (
dag.cicd(name, volumeversion)
.semvermaxhash()
)@func()
async example(name: string, volumeVersion: number, ): Promise<number> {
return dag
.cicd(name, volumeVersion)
.semverMaxHash()
}buildContainerFromFile() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctxDir | String | "" | No description provided |
| buildArgs | [BuildArg ! ] | - | Note: uses the local BuildArg type (not dagger.BuildArg) due to a schema-generation bug when using core types as slice args; see TODO in types.go and https://github.com/dagger/dagger/issues/8529. |
| dockerFileName | String | "Containerfile" | No description provided |
| imageTitle | String | - | No description provided |
| imageDescription | String | - | No description provided |
| imageLicense | String | "GPL-3.0" | No description provided |
| imageUrl | String | "" | No description provided |
| imageAuthor | String | "vcrwv" | No description provided |
| quayExpiry | String | "5d" | Sets the expiry date for the quay.io registry. Perhaps you want to set it to 30d, no? If not set, the image is not evicted over time. |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(name string, volumeVersion int) *dagger.Container {
return dag.
Cicd(name, volumeVersion).
Buildcontainerfromfile()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Container:
return (
dag.cicd(name, volumeversion)
.buildcontainerfromfile()
)@func()
example(name: string, volumeVersion: number, ): Container {
return dag
.cicd(name, volumeVersion)
.buildContainerFromFile()
}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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer cargo-buildfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Cargobuild()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.cargobuild()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer cargo-testfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Cargotest()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.cargotest()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.cargoTest()
}packageBookworm() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-bookwormfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packagebookworm()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packagebookworm()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageBookworm()
}packageEl10() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-el-1-0func (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packageel10()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packageel10()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageEl10()
}packageEl8() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-el-8func (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packageel8()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packageel8()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageEl8()
}packageEl9() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-el-9func (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packageel9()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packageel9()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageEl9()
}packageJammy() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-jammyfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packagejammy()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packagejammy()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageJammy()
}packageNoble() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-noblefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packagenoble()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packagenoble()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageNoble()
}packageResolute() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-resolutefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packageresolute()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packageresolute()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageResolute()
}packageTrixie() 🔗
Return Type
Directory ! Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer package-trixiefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Packagetrixie()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.packagetrixie()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.packageTrixie()
}publishContainer() 🔗
PublishContainer publishes the given container to a container registry and returns the fully qualified address of the published image, with digest.
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | No description provided |
| registry | String | "quay.io" | No description provided |
| username | String | "" | No description provided |
| password | Secret | - | No description provided |
| repository | String | "ds2/my-repo" | No description provided |
| tags | [String ! ] | ["latest"] | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer publish-container --container IMAGE:TAGfunc (m *MyModule) Example(ctx context.Context, name string, volumeVersion int, container *dagger.Container) []string {
return dag.
Cicd(name, volumeVersion).
Publishcontainer(ctx, container)
}@function
async def example(name: str, volumeversion: int, container: dagger.Container) -> List[str]:
return await (
dag.cicd(name, volumeversion)
.publishcontainer(container)
)@func()
async example(name: string, volumeVersion: number, container: Container): Promise<string[]> {
return dag
.cicd(name, volumeVersion)
.publishContainer(container)
}withBunBuild() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| webDirName | String | "" | No description provided |
| buildCommand | String | "build" | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-bun-buildfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Withbunbuild()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.withbunbuild()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.withBunBuild()
}withDenoBuild() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| webDirName | String | "" | No description provided |
| buildCommand | String | "build" | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-deno-buildfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Withdenobuild()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.withdenobuild()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.withDenoBuild()
}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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-golangfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withgolang()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withgolang()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-bookwormfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustbookworm()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustbookworm()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.withRustBookworm()
}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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-el-1-0func (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustel10()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustel10()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-el-8func (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustel8()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustel8()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-el-9func (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustel9()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustel9()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-jammyfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustjammy()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustjammy()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-noblefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustnoble()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustnoble()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-resolutefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrustresolute()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrustresolute()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.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@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-rust-trixiefunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Cicd {
return dag.
Cicd(name, volumeVersion).
Withrusttrixie()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Cicd:
return (
dag.cicd(name, volumeversion)
.withrusttrixie()
)@func()
example(name: string, volumeVersion: number, ): Cicd {
return dag
.cicd(name, volumeVersion)
.withRustTrixie()
}withYarnBuild() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| webDirName | String | "" | No description provided |
| buildCommand | String | "build" | No description provided |
Example
dagger -m gitlab.com/ds_2/dagger-verse/cicd@085f4d7d9043449f75ec7c0d3010bbdbcdabb4a5 call \
--name string --volume-version integer with-yarn-buildfunc (m *MyModule) Example(name string, volumeVersion int) *dagger.Directory {
return dag.
Cicd(name, volumeVersion).
Withyarnbuild()
}@function
def example(name: str, volumeversion: int, ) -> dagger.Directory:
return (
dag.cicd(name, volumeversion)
.withyarnbuild()
)@func()
example(name: string, volumeVersion: number, ): Directory {
return dag
.cicd(name, volumeVersion)
.withYarnBuild()
}BuildArg 🔗
A key/value pair passed as a build argument to the container build.
TODO: This wraps dagger.BuildArg instead of using the core type directly because using []dagger.BuildArg as a slice argument on a module function currently breaks schema generation (engine tries to qualify the core type as “CicdBuildArg” and fails). This is a known Dagger engine limitation, see https://github.com/dagger/dagger/issues/8529. Re-evaluate switching to []dagger.BuildArg directly (which would also enable –build-args on the CLI) once that issue is resolved in a future dagger engine version.
name() 🔗
Name of the build argument.
Return Type
String ! Example
Function CicdBuildArg.name is not accessible from the cicd moduleFunction CicdBuildArg.name is not accessible from the cicd moduleFunction CicdBuildArg.name is not accessible from the cicd moduleFunction CicdBuildArg.name is not accessible from the cicd modulevalue() 🔗
Value of the build argument.
Return Type
String ! Example
Function CicdBuildArg.value is not accessible from the cicd moduleFunction CicdBuildArg.value is not accessible from the cicd moduleFunction CicdBuildArg.value is not accessible from the cicd moduleFunction CicdBuildArg.value is not accessible from the cicd module