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 init -t spin

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 Client, { connect } from "https://sdk.fluentci.io/v0.1.7/mod.ts";
import { build, deploy } from "https://pkg.fluentci.io/[email protected]/mod.ts";

function pipeline(src = ".") {
connect(async (client: Client) => {
await build();
await deploy();
});
}

pipeline();