Dagger
Search

ci

in a sane way.

Installation

dagger install github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb

Entrypoint

Return Type
Ci !
Arguments
NameTypeDefault ValueDescription
cfgFileFile -No description provided
buildContextDirectory -No description provided
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb 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 🔗

conf() 🔗

Return Type
Conf !
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb call \
 conf
func (m *myModule) example() *dagger.CiConf  {
	return dag.
			Ci().
			Conf()
}
@function
def example() -> dagger.CiConf:
	return (
		dag.ci()
		.conf()
	)
@func()
example(): CiConf {
	return dag
		.ci()
		.conf()
}

buildContext() 🔗

Contains the context of our CI pipeline execution

Return Type
Directory !
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb call \
 build-context
func (m *myModule) example() *dagger.Directory  {
	return dag.
			Ci().
			BuildContext()
}
@function
def example() -> dagger.Directory:
	return (
		dag.ci()
		.build_context()
	)
@func()
example(): Directory {
	return dag
		.ci()
		.buildContext()
}

run() 🔗

Start the CI pipeline

Return Type
[String ! ] !
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb call \
 run
func (m *myModule) example(ctx context.Context) []string  {
	return dag.
			Ci().
			Run(ctx)
}
@function
async def example() -> List[str]:
	return await (
		dag.ci()
		.run()
	)
@func()
async example(): Promise<string[]> {
	return dag
		.ci()
		.run()
}

configJsonSchema() 🔗

Returns the json schema that the config file follows.

Return Type
String !
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb call \
 config-json-schema
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Ci().
			ConfigJsonSchema(ctx)
}
@function
async def example() -> str:
	return await (
		dag.ci()
		.config_json_schema()
	)
@func()
async example(): Promise<string> {
	return dag
		.ci()
		.configJsonSchema()
}

printConf() 🔗

Return Type
String !
Example
dagger -m github.com/Zeglius/bootc-dagger/ci@95a964b135f20c5c995aea10fee582975b65bdbb call \
 print-conf
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Ci().
			PrintConf(ctx)
}
@function
async def example() -> str:
	return await (
		dag.ci()
		.print_conf()
	)
@func()
async example(): Promise<string> {
	return dag
		.ci()
		.printConf()
}

Conf 🔗

jobs() 🔗

Wow

Return Type
[Job ! ] !
Example
Function CiConf.jobs is not accessible from the ci module
Function CiConf.jobs is not accessible from the ci module
Function CiConf.jobs is not accessible from the ci module
Function CiConf.jobs is not accessible from the ci module

Job 🔗

containerfile() 🔗

Containerfile is the path to the Dockerfile used for building the container.

Example: Containerfile: “Dockerfile”

Return Type
String !
Example
Function CiJob.containerfile is not accessible from the ci module
Function CiJob.containerfile is not accessible from the ci module
Function CiJob.containerfile is not accessible from the ci module
Function CiJob.containerfile is not accessible from the ci module

buildArgs() 🔗

BuildArgs are the build arguments passed to the container build process.

Example: BuildArgs: []string{“ARG1=value1”, “ARG2=value2”}

Return Type
[String ! ] !
Example
Function CiJob.buildArgs is not accessible from the ci module
Function CiJob.buildArgs is not accessible from the ci module
Function CiJob.buildArgs is not accessible from the ci module
Function CiJob.buildArgs is not accessible from the ci module

annotations() 🔗

Annotations are metadata labels that can be added to the container.

Example: Annotations: []string{“key1=value1”, “key2=value2”}

Return Type
[String ! ] !
Example
Function CiJob.annotations is not accessible from the ci module
Function CiJob.annotations is not accessible from the ci module
Function CiJob.annotations is not accessible from the ci module
Function CiJob.annotations is not accessible from the ci module

labels() 🔗

Labels are metadata labels that can be added to the container.

Example: Labels: []string{“key1=value1”, “key2=value2”}

Return Type
[String ! ] !
Example
Function CiJob.labels is not accessible from the ci module
Function CiJob.labels is not accessible from the ci module
Function CiJob.labels is not accessible from the ci module
Function CiJob.labels is not accessible from the ci module

outputName() 🔗

OutputName specifies name for the output container image.

Example: OutputName: “ghcr.io/ublue-os/bluefin”

Return Type
String !
Example
Function CiJob.outputName is not accessible from the ci module
Function CiJob.outputName is not accessible from the ci module
Function CiJob.outputName is not accessible from the ci module
Function CiJob.outputName is not accessible from the ci module

outputTags() 🔗

OutputTags specifies tags for the output container images.

Example: OutputTags: []string{“latest”, “v1.0”}

Return Type
[String ! ] !
Example
Function CiJob.outputTags is not accessible from the ci module
Function CiJob.outputTags is not accessible from the ci module
Function CiJob.outputTags is not accessible from the ci module
Function CiJob.outputTags is not accessible from the ci module