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() 🔗
- Build, package and publish a Go application as a container image
- Generate a CycloneDX Software Bill Of Materials using Syft
- Attest the pieces of evidence (binary, container image, and SBOM) using Chainloop https://docs.chainloop.dev/getting-started/attestation-crafting
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
proj | Directory ! | - | No description provided |
chainloopToken | Secret ! | - | No description provided |
chainloopSigningKey | Secret ! | - | No description provided |
chainloopPassphrase | Secret ! | - | 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)
}