Skip to content

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

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/spin-pipeline

Repository files navigation

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")!);

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages