Skip to content

A ready-to-use CI/CD Pipeline for building and deploying to Wasmer Edge

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/wasmer-pipeline

Repository files navigation

Wasmer Pipeline

fluentci pipeline deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for deploying your applications to Wasmer Edge.

🚀 Usage

Run the following command:

fluentci run wasmer_pipeline

🧩 Dagger Module

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

🛠️ Environment Variables

Variable Description
WASMER_TOKEN Your wasmer access token

✨ Jobs

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> 

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { build, deploy } from "jsr:@fluentci/wasmer";

await build(".")
await deploy(".", Deno.env.get("WASMER_TOKEN"), true);