Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluent-ci-templates/wasmer-pipeline
A ready-to-use CI/CD Pipeline for building and deploying to Wasmer Edge
https://github.com/fluent-ci-templates/wasmer-pipeline
cicd dagger deno pipeline typescript wasmer
Last synced: about 1 month ago
JSON representation
A ready-to-use CI/CD Pipeline for building and deploying to Wasmer Edge
- Host: GitHub
- URL: https://github.com/fluent-ci-templates/wasmer-pipeline
- Owner: fluent-ci-templates
- License: mit
- Created: 2023-08-10T07:46:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T16:45:32.000Z (6 months ago)
- Last Synced: 2024-07-24T01:02:28.326Z (5 months ago)
- Topics: cicd, dagger, deno, pipeline, typescript, wasmer
- Language: TypeScript
- Homepage:
- Size: 200 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Wasmer Pipeline
[![fluentci pipeline](https://shield.fluentci.io/x/wasmer_pipeline)](https://pkg.fluentci.io/wasmer_pipeline)
![deno compatibility](https://shield.deno.dev/deno/^1.41)
[![dagger-min-version](https://shield.fluentci.io/dagger/v0.11.7)](https://dagger.io)
[![](https://jsr.io/badges/@fluentci/wasmer)](https://jsr.io/@fluentci/wasmer)
[![ci](https://github.com/fluent-ci-templates/wasmer-pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/fluent-ci-templates/wasmer-pipeline/actions/workflows/ci.yml)A ready-to-use CI/CD Pipeline for deploying your applications to [Wasmer Edge](https://wasmer.io/products/edge).
## 🚀 Usage
Run the following command:
```bash
fluentci run wasmer_pipeline
```## 🧩 Dagger Module
Use as a [Dagger](https://dagger.io) Module:
```bash
dagger install github.com/fluent-ci-templates/wasmer-pipeline@main
```Call a function from the module:
```sh
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 |```typescript
build(
src: string | Directory
): Promisedeploy(
src: string | Directory,
token: string | Secret,
cache = false
): Promise
```## 👨💻 Programmatic usage
You can also use this pipeline programmatically:
```typescript
import { build, deploy } from "jsr:@fluentci/wasmer";await build(".")
await deploy(".", Deno.env.get("WASMER_TOKEN"), true);
```