Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluent-ci-templates/spin-pipeline
A ready-to-use CI/CD Pipeline for building and deploying your Spin applications to Fermyon Platform.
https://github.com/fluent-ci-templates/spin-pipeline
cicd dagger fermyon pipeline spin-framework typescript wasm
Last synced: about 5 hours ago
JSON representation
A ready-to-use CI/CD Pipeline for building and deploying your Spin applications to Fermyon Platform.
- Host: GitHub
- URL: https://github.com/fluent-ci-templates/spin-pipeline
- Owner: fluent-ci-templates
- License: mit
- Created: 2023-08-09T07:13:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T09:43:06.000Z (8 months ago)
- Last Synced: 2024-03-09T10:34:57.482Z (8 months ago)
- Topics: cicd, dagger, fermyon, pipeline, spin-framework, typescript, wasm
- Language: TypeScript
- Homepage:
- Size: 172 KB
- Stars: 2
- 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
# Spin Pipeline
[![fluentci pipeline](https://shield.fluentci.io/x/spin_pipeline)](https://pkg.fluentci.io/spin_pipeline)
[![deno module](https://shield.deno.dev/x/spin_pipeline)](https://deno.land/x/spin_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/spin)](https://jsr.io/@fluentci/spin)
[![](https://img.shields.io/codecov/c/gh/fluent-ci-templates/spin-pipeline)](https://codecov.io/gh/fluent-ci-templates/spin-pipeline)
[![ci](https://github.com/fluent-ci-templates/spin-pipeline/actions/workflows/ci.yml/badge.svg)](https://github.com/fluent-ci-templates/spin-pipeline/actions/workflows/ci.yml)A ready-to-use CI/CD Pipeline for building and deploying your [Spin](https://www.fermyon.com/spin) applications to [Fermyon Platform](https://www.fermyon.com/platform).
## 🚀 Usage
Run the following command:
```bash
fluentci run spin_pipeline
```## 🧩 Dagger Module
Use as a [Dagger](https://dagger.io) Module:
```bash
dagger install github.com/fluent-ci-templates/spin-pipeline@main
```Call a function from the module:
```bash
dagger call build --src .
dagger call deploy --src . --auth-token SPIN_AUTH_TOKEN
```## 🛠️ Environment Variables
| Variable | Description |
|-----------------|----------------------------------|
| SPIN_AUTH_TOKEN | Your Fermyon Cloud Access Token. |## ✨ Jobs
| Job | Description |
|---------|---------------------------------------------------------------------|
| build | Build your Spin application (Only Rust is supported at the moment). |
| deploy | Deploy your Spin application to Fermyon Platform. |```typescript
build(
src: string | Directory
): Promisedeploy(
src: string | Directory,
authToken: string | Secret,
): Promise
```## 👨💻 Programmatic usage
You can also use this pipeline programmatically:
```typescript
import { build, deploy } from "jsr:@fluentci/spin";await build();
await deploy(".", Deno.env.get("SPIN_AUTH_TOKEN")!);
```