Skip to main content

Spin

Running the pre-built Spin pipeline directly

Run the following command to run the pre-built Spin pipeline without having to initialize a project:

fluentci run spin_pipeline

Add Spin Pipeline to your project

Run the following command to add a Spin pipeline to your project:

fluentci run spin build

This will create a .fluentci directory in your project, feel free to customize the pipeline for your needs. You can then run the following command to start the pipeline:

fluentci run .

Environment Variables

VariableDescription
SPIN_AUTH_TOKENYour Fermyon Cloud Access Token.

Jobs

JobDescription
buildBuild your Spin application (Only Rust is supported at the moment).
deployDeploy your Spin application to Fermyon Platform.

Programmatic usage

You can also use this pipeline programmatically:

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

await build();
await deploy();

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to deploy applications to Fermyon Cloud:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: build
run: fluentci run --wasm spin build
- name: deploy
run: fluentci run --wasm spin deploy
env:
SPIN_AUTH_TOKEN: ${{ secrets.SPIN_AUTH_TOKEN }}