Dagger
Search

fly

A utility module to deploy a container to fly.io using a very basic default configuration

Installation

dagger install github.com/kpenfound/dagger-modules/fly@v0.1.0

Entrypoint

Return Type
Fly
Example
dagger -m github.com/kpenfound/dagger-modules/fly@16b6b6dda641223f8546431cd5a3781d0c0b5157 call \
func (m *myModule) example() *Fly  {
	return dag.
			Fly()
}
@function
def example() -> dag.Fly:
	return (
		dag.fly()
	)
@func()
example(): Fly {
	return dag
		.fly()
}

Types

Fly 🔗

deploy() 🔗

Deploy an application to fly.io with an image ref

Return Type
String !
Arguments
NameTypeDefault ValueDescription
appString !-No description provided
imageString !-No description provided
tokenSecret !-A reference to a secret value, which can be handled more safely than the value itself.
Example
dagger -m github.com/kpenfound/dagger-modules/fly@16b6b6dda641223f8546431cd5a3781d0c0b5157 call \
 deploy --app string --image string --token env:MYSECRET
func (m *myModule) example(ctx context.Context, app string, image string, token *Secret) string  {
	return dag.
			Fly().
			Deploy(ctx, app, image, token)
}
@function
async def example(app: str, image: str, token: dagger.Secret) -> str:
	return await (
		dag.fly()
		.deploy(app, image, token)
	)
@func()
async example(app: string, image: string, token: Secret): Promise<string> {
	return dag
		.fly()
		.deploy(app, image, token)
}