v0.9.0
A ready-to-use CI/CD Pipeline for building and deploying your Spin applications to Fermyon Platform.
Attributes
Includes Deno configuration
Repository
Current version released
9 months ago
Dependencies
other
jsr:@std/flags@0.218.2jsr:@std/fmt@0.218.2/colorsjsr:@std/path@0.218.2jsr:@std/testing@0.218.2/assertsjsr:@tsirysndr/env-js@0.1.2jsr:@tsirysndr/fluent-az-pipelines@0.3jsr:@tsirysndr/fluent-circleci@0.3jsr:@tsirysndr/fluent-codepipeline@0.3jsr:@tsirysndr/fluent-gh-actions@0.3jsr:@tsirysndr/fluent-gitlab-ci@0.5npm:graphql-request@6.1.0npm:graphql@16.8.1npm:lodash@4.17.21npm:node-color-log@11.0.2npm:stringify-tree@1.1.1
Spin Pipeline
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")!);