Skip to main content

Spin

Run the following command to run the pre-built Spin Pipeline in your project to deploy your application to Fermyon Platform:

fluentci run spin deploy

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 }}