Dagger
Search

build-and-release

No long description provided.

Installation

dagger install github.com/chainloop-dev/integration-demo/chainloop-demo/dagger@v0.0.47

Entrypoint

Return Type
BuildAndRelease
Example
dagger -m github.com/chainloop-dev/integration-demo/chainloop-demo/dagger@0bf471b0ccb1d673a780cd625a3e3e98375ca49b call \
func (m *myModule) example() *BuildAndRelease  {
	return dag.
			BuildAndRelease()
}
@function
def example() -> dag.BuildAndRelease:
	return (
		dag.build_and_release()
	)
@func()
example(): BuildAndRelease {
	return dag
		.buildAndRelease()
}

Types

BuildAndRelease 🔗

buildAndPublish() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
projDirectory !-No description provided
chainloopTokenSecret !-No description provided
chainloopSigningKeySecret !-No description provided
chainloopPassphraseSecret !-No description provided
Example
dagger -m github.com/chainloop-dev/integration-demo/chainloop-demo/dagger@0bf471b0ccb1d673a780cd625a3e3e98375ca49b call \
 build-and-publish --proj DIR_PATH --chainloop-token env:MYSECRET --chainloop-signing-key env:MYSECRET --chainloop-passphrase env:MYSECRET
func (m *myModule) example(ctx context.Context, proj *Directory, chainloopToken *Secret, chainloopSigningKey *Secret, chainloopPassphrase *Secret) string  {
	return dag.
			BuildAndRelease().
			BuildAndPublish(ctx, proj, chainloopToken, chainloopSigningKey, chainloopPassphrase)
}
@function
async def example(proj: dagger.Directory, chainloop_token: dagger.Secret, chainloop_signing_key: dagger.Secret, chainloop_passphrase: dagger.Secret) -> str:
	return await (
		dag.build_and_release()
		.build_and_publish(proj, chainloop_token, chainloop_signing_key, chainloop_passphrase)
	)
@func()
async example(proj: Directory, chainloopToken: Secret, chainloopSigningKey: Secret, chainloopPassphrase: Secret): Promise<string> {
	return dag
		.buildAndRelease()
		.buildAndPublish(proj, chainloopToken, chainloopSigningKey, chainloopPassphrase)
}