spin
No long description provided.
Installation
dagger install github.com/fluent-ci-templates/spin-pipeline@8b453fb628b5fd2e023fc54c7b7df35536a45080
Entrypoint
Return Type
Spin
Example
dagger -m github.com/fluent-ci-templates/spin-pipeline@8b453fb628b5fd2e023fc54c7b7df35536a45080 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@8b453fb628b5fd2e023fc54c7b7df35536a45080 call \
build
func (m *myModule) example(src ) {
return dag.
Spin().
Build(src)
}
@function
def example(src: ) -> :
return (
dag.spin()
.build(src)
)
@func()
example(src: ): {
return dag
.spin()
.build(src)
}
deploy() 🔗
Package and upload your application to the Fermyon Cloud
Return Type
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
authToken | Secret ! | - | No description provided |
cachePath | StringKind | - | No description provided |
cacheKey | StringKind | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/spin-pipeline@8b453fb628b5fd2e023fc54c7b7df35536a45080 call \
deploy
func (m *myModule) example(src , authToken ) {
return dag.
Spin().
Deploy(src, authToken)
}
@function
def example(src: , auth_token: ) -> :
return (
dag.spin()
.deploy(src, auth_token)
)
@func()
example(src: , authToken: ): {
return dag
.spin()
.deploy(src, authToken)
}