v0.8.1
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
10 months ago
Dependencies
deno.land/x
other
skypack.dev
lodash
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 mod install github.com/fluent-ci-templates/spin-pipeline@mod
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,
cachePath = "/app/target",
cacheKey = "spin-target-cache"
): Promise<string>
Programmatic usage
You can also use this pipeline programmatically:
import { build, deploy } from "https://pkg.fluentci.io/spin_pipeline@v0.8.1/mod.ts";
await build();
await deploy(".", Deno.env.get("SPIN_AUTH_TOKEN")!);