spin
No long description provided.
Installation
dagger install github.com/fluent-ci-templates/spin-pipeline@ec9fce6e4a703b15408b79d3f42f9da56b2b563c
Entrypoint
Return Type
Spin
Example
dagger -m github.com/fluent-ci-templates/spin-pipeline@ec9fce6e4a703b15408b79d3f42f9da56b2b563c call \
func (m *myModule) example() *Spin {
return dag.
Spin()
}
@function
def example() -> dag.Spin:
return (
dag.spin()
)
@func()
example(): Spin {
return dag
.spin()
}
Types
Spin 🔗
build() 🔗
Build your application (only Rust is supported at the moment)
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/spin-pipeline@ec9fce6e4a703b15408b79d3f42f9da56b2b563c call \
build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Spin().
Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.spin()
.build(src)
)
@func()
example(src: Directory): Directory {
return dag
.spin()
.build(src)
}
deploy() 🔗
Package and upload your application to the Fermyon Cloud
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
authToken | Secret ! | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/spin-pipeline@ec9fce6e4a703b15408b79d3f42f9da56b2b563c call \
deploy --src DIR_PATH --auth-token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, authToken *Secret) string {
return dag.
Spin().
Deploy(ctx, src, authToken)
}
@function
async def example(src: dagger.Directory, auth_token: dagger.Secret) -> str:
return await (
dag.spin()
.deploy(src, auth_token)
)
@func()
async example(src: Directory, authToken: Secret): Promise<string> {
return dag
.spin()
.deploy(src, authToken)
}