denoDeploy
This module provides functionality to deploy projects to Deno Deploy using the deployctl tool.It includes a function to run the deployment process with specified parameters such as source directory,
authentication token, project name, organization, entry point file, and deployment mode (production or preview).
For more information about prerequisites and setup, please refer to:
https://github.com/StaytunedLLP/daggerverse/blob/main/denodeploy/README.md
Installation
dagger install github.com/StaytunedLLP/daggerverse/denodeploy@v0.1.32Entrypoint
Return Type
DenoDeploy Example
dagger -m github.com/StaytunedLLP/daggerverse/denodeploy@f3bd722d9454b351e81c8bfecb2f8ea47de12469 call \
func (m *MyModule) Example() *dagger.DenoDeploy {
return dag.
DenoDeploy()
}@function
def example() -> dagger.DenoDeploy:
return (
dag.deno_deploy()
)@func()
example(): DenoDeploy {
return dag
.denoDeploy()
}Types
DenoDeploy 🔗
runDeployctl() 🔗
Deploys a project using the deployctl tool in a Deno container.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - |
|
| token | Secret ! | - |
|
| project | String ! | - |
|
| org | String ! | - |
|
| entrypoint | String ! | - |
|
| prod | Boolean ! | - |
|
Example
dagger -m github.com/StaytunedLLP/daggerverse/denodeploy@f3bd722d9454b351e81c8bfecb2f8ea47de12469 call \
run-deployctl --source DIR_PATH --token env:MYSECRET --project string --org string --entrypoint string --prod booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, token *dagger.Secret, project string, org string, entrypoint string, prod bool) string {
return dag.
DenoDeploy().
RunDeployctl(ctx, source, token, project, org, entrypoint, prod)
}@function
async def example(source: dagger.Directory, token: dagger.Secret, project: str, org: str, entrypoint: str, prod: bool) -> str:
return await (
dag.deno_deploy()
.run_deployctl(source, token, project, org, entrypoint, prod)
)@func()
async example(source: Directory, token: Secret, project: string, org: string, entrypoint: string, prod: boolean): Promise<string> {
return dag
.denoDeploy()
.runDeployctl(source, token, project, org, entrypoint, prod)
}