Dagger
Search

flyio

Basic Dagger module for deploying apps to Fly.io

Installation

dagger install github.com/peterj/dagger-modules/flyio@v0.0.3

Entrypoint

Return Type
Flyio
Example
dagger -m github.com/peterj/dagger-modules/flyio@46138d1028f721d7a0cdc03794c64aa063584f46 call \
func (m *myModule) example() *Flyio  {
	return dag.
			Flyio()
}
@function
def example() -> dag.Flyio:
	return (
		dag.flyio()
	)
@func()
example(): Flyio {
	return dag
		.flyio()
}

Types

Flyio 🔗

deploy() 🔗

Deploy deploys an app from the src folder to Fly.io

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
tokenSecret !-No description provided
Example
dagger -m github.com/peterj/dagger-modules/flyio@46138d1028f721d7a0cdc03794c64aa063584f46 call \
 deploy --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret) string  {
	return dag.
			Flyio().
			Deploy(ctx, src, token)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
	return await (
		dag.flyio()
		.deploy(src, token)
	)
@func()
async example(src: Directory, token: Secret): Promise<string> {
	return dag
		.flyio()
		.deploy(src, token)
}

flyContainer() 🔗

FlyContainer creates a container with the flyctl CLI installed

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
tokenSecret !-No description provided
Example
dagger -m github.com/peterj/dagger-modules/flyio@46138d1028f721d7a0cdc03794c64aa063584f46 call \
 fly-container --token env:MYSECRET
func (m *myModule) example(token *Secret) *Container  {
	return dag.
			Flyio().
			FlyContainer(token)
}
@function
def example(token: dagger.Secret) -> dagger.Container:
	return (
		dag.flyio()
		.fly_container(token)
	)
@func()
example(token: Secret): Container {
	return dag
		.flyio()
		.flyContainer(token)
}