Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fluent-ci-templates/netlify-pipeline

A ready-to-use CI/CD Pipeline for deploying your applications to Netlify.
https://github.com/fluent-ci-templates/netlify-pipeline

cicd dagger deno netlify netlify-deployment pipeline typescript

Last synced: about 5 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# Netlify Pipeline

[![fluentci pipeline](https://shield.fluentci.io/x/netlify_pipeline)](https://pkg.fluentci.io/netlify_pipeline)
[![deno module](https://shield.deno.dev/x/netlify_pipeline)](https://deno.land/x/netlify_pipeline)
![deno compatibility](https://shield.deno.dev/deno/^1.41)
[![dagger-min-version](https://shield.fluentci.io/dagger/v0.11.7)](https://dagger.io)
[![](https://img.shields.io/codecov/c/gh/fluent-ci-templates/netlify-pipeline)](https://codecov.io/gh/fluent-ci-templates/netlify-pipeline)

A ready-to-use CI/CD Pipeline for deploying your applications to [Netlify](https://www.netlify.com).

## 🚀 Usage

Run the following command:

```bash
fluentci run netlify_pipeline
```

## Dagger Module

Use as a [Dagger](https://dagger.io) module:

```bash
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. |

```typescript
build(
src?: Directory | string = "."
): Promise

deploy(
src: Directory | string,
token: Secret | string,
siteId: string,
siteDir: string
): Promise
```

## Programmatic usage

You can also use this pipeline programmatically:

```typescript
import { build, deploy } from "https://pkg.fluentci.io/[email protected]/mod.ts";

await build();
await deploy();

```