Skip to main content
This release is 1 version behind 0.9.1 — the latest version of @fluentci/spin. Jump to latest

Built and signed on GitHub Actions

🧩 A ready to use CI/CD Pipeline for deploying Spin applications to Fermyon Platform

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
70%
Published
11 months ago (0.9.0)

Spin Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for building and deploying your Spin applications to Fermyon Platform.

🚀 Usage

Run the following command:

fluentci run spin_pipeline

🧩 Dagger Module

Use as a Dagger Module:

dagger install github.com/fluent-ci-templates/spin-pipeline@main

Call a function from the module:

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.
build(
  src: string | Directory
): Promise<Directory | string>

deploy(
  src: string | Directory,
  authToken: string | Secret,
): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

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

await build();
await deploy(".", Deno.env.get("SPIN_AUTH_TOKEN")!);
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@fluentci/spin

Import symbol

import * as spin from "@fluentci/spin";

---- OR ----

Import directly with a jsr specifier

import * as spin from "jsr:@fluentci/spin";

Add Package

npx jsr add @fluentci/spin

Import symbol

import * as spin from "@fluentci/spin";

Add Package

yarn dlx jsr add @fluentci/spin

Import symbol

import * as spin from "@fluentci/spin";

Add Package

pnpm dlx jsr add @fluentci/spin

Import symbol

import * as spin from "@fluentci/spin";

Add Package

bunx jsr add @fluentci/spin

Import symbol

import * as spin from "@fluentci/spin";