railway
This module provides a function to deploy to Railway
Installation
dagger install github.com/fluent-ci-templates/railway-pipeline@v0.8.0Entrypoint
Return Type
Railway Example
dagger -m github.com/fluent-ci-templates/railway-pipeline@46cb960455db7c2c061cb32df9355666cf3bc75b call \
func (m *MyModule) Example() *dagger.Railway {
return dag.
Railway()
}@function
def example() -> dagger.Railway:
return (
dag.railway()
)@func()
example(): Railway {
return dag
.railway()
}Types
Railway 🔗
deploy() 🔗
Deploy to Railway
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | The directory to deploy |
| token | Secret ! | - | Railway token |
Example
dagger -m github.com/fluent-ci-templates/railway-pipeline@46cb960455db7c2c061cb32df9355666cf3bc75b call \
deploy --src DIR_PATH --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, token *dagger.Secret) string {
return dag.
Railway().
Deploy(ctx, src, token)
}@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.railway()
.deploy(src, token)
)@func()
async example(src: Directory, token: Secret): Promise<string> {
return dag
.railway()
.deploy(src, token)
}