A ready-to-use CI/CD Pipeline for deploying your applications to Netlify.
Run the following command:
fluentci run netlify_pipeline
Use as a Dagger module:
dagger mod install github.com/fluent-ci-templates/netlify-pipeline@mod
Variable | Description |
---|---|
NETLIFY_AUTH_TOKEN | Your Netlify Access Token |
NETLIFY_SITE_ID | Your Netlify Site ID |
NETLIFY_SITE_DIR | Your directory to deploy (default: . ) |
Job | Description |
---|---|
build | Builds your application. |
deploy | Deploys your application to Netlify. |
build(
src?: Directory | string = "."
): Promise<Directory | string>
deploy(
src: Directory | string,
token: Secret | string,
siteId: string,
siteDir: string
): Promise<string>
You can also use this pipeline programmatically:
import { build, deploy } from "https://pkg.fluentci.io/netlify_pipeline@v0.7.2/mod.ts";
await build();
await deploy();