A ready-to-use CI/CD Pipeline for deploying your applications to Wasmer Edge.
Run the following command:
fluentci run wasmer_pipeline
Use as a Dagger Module:
dagger install github.com/fluent-ci-templates/wasmer-pipeline@main
Call a function from the module:
dagger call build --src .
dagger call deploy --src . --token WASMER_TOKEN
Variable | Description |
---|---|
WASMER_TOKEN | Your wasmer access token |
Job | Description |
---|---|
build | Build your application. |
deploy | Deploy your application to wasm edge |
build(
src: string | Directory
): Promise<Directory | string>
deploy(
src: string | Directory,
token: string | Secret,
cache = false
): Promise<string>
You can also use this pipeline programmatically:
import { build, deploy } from "jsr:@fluentci/wasmer";
await build(".")
await deploy(".", Deno.env.get("WASMER_TOKEN"), true);