Skip to content

A ready-to-use CI/CD Pipeline for deploying your applications to Netlify.

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/netlify-pipeline

Repository files navigation

Netlify Pipeline

fluentci pipeline deno module deno compatibility dagger-min-version

A ready-to-use CI/CD Pipeline for deploying your applications to Netlify.

🚀 Usage

Run the following command:

fluentci run netlify_pipeline

Dagger Module

Use as a Dagger module:

dagger mod install github.com/fluent-ci-templates/netlify-pipeline@mod

Environment Variables

Variable Description
NETLIFY_AUTH_TOKEN Your Netlify Access Token
NETLIFY_SITE_ID Your Netlify Site ID
NETLIFY_SITE_DIR Your directory to deploy (default: .)

Jobs

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>

Programmatic usage

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();