flyio
(For the moment it's used to deploy to an existing app)Installation
dagger install github.com/NunoFrRibeiro/daggerverse/fly@v0.1.4
Entrypoint
Return Type
Flyio !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | - | Fly.io Container version |
token | Secret ! | - | Token to connect to fly.io, |
regions | String | - | Deploy to machines only in these regions. Multiple regions can be specified with comma separated valuesor or by providing the flag multiple times Ex: mad,fra |
org | String | "personal" | The target Fly.io organizatio (defaults to personal) |
container | Container | - | Use a custom container with Fly installed |
Example
func (m *myModule) example(token *Secret) *Flyio {
return dag.
Flyio(token)
}
Types
Flyio 🔗
deploy() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | Directory from where to deploy the app (assumes there's a fly.toml in the directory) |
image | String | - | Deploy using a Docker image |
Example
func (m *myModule) example(ctx context.Context, token *Secret, dir *Directory) string {
return dag.
Flyio(token).
Deploy(ctx, dir)
}
create() 🔗
Create a new application on the Fly platform
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
appName | String ! | - | App name Ex: `goblog-2024-08-06` |
Example
func (m *myModule) example(ctx context.Context, token *Secret, appName string) string {
return dag.
Flyio(token).
Create(ctx, appName)
}