Dagger
Search

railway

This module provides a function to deploy to Railway

Installation

dagger install github.com/fluent-ci-templates/railway-pipeline@v0.8.0

Entrypoint

Return Type
Railway
Example
dagger -m github.com/fluent-ci-templates/railway-pipeline@46cb960455db7c2c061cb32df9355666cf3bc75b call \
func (m *myModule) example() *Railway  {
	return dag.
			Railway()
}
@function
def example() -> dag.Railway:
	return (
		dag.railway()
	)
@func()
example(): Railway {
	return dag
		.railway()
}

Types

Railway 🔗

deploy() 🔗

Deploy to Railway

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The directory to deploy
tokenSecret !-Railway token
Example
dagger -m github.com/fluent-ci-templates/railway-pipeline@46cb960455db7c2c061cb32df9355666cf3bc75b call \
 deploy --src DIR_PATH --token env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *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)
}