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.32
Entrypoint
Return Type
DenoDeploy
Example
dagger -m github.com/StaytunedLLP/daggerverse/denodeploy@f3bd722d9454b351e81c8bfecb2f8ea47de12469 call \
func (m *myModule) example() *DenoDeploy {
return dag.
DenoDeploy()
}
@function
def example() -> dag.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 ! | - | - The source directory containing the project files to be deployed. |
token | Secret ! | - | - The secret token used for authentication with the deployment service. |
project | String ! | - | - The name of the project to be deployed. |
org | String ! | - | - The organization under which the project is to be deployed (optional). |
entrypoint | String ! | - | - The entry point file for the deployment. |
prod | Boolean ! | - | - A flag indicating whether to deploy in production mode (true) or preview mode (false). |
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 boolean
func (m *myModule) example(ctx context.Context, source *Directory, token *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)
}