A ready-to-use CI/CD Pipeline for deploying your applications to Netlify.
Run the following command:
fluentci run netlify_pipelineUse 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/[email protected]/mod.ts";
await build();
await deploy();