Deploying to Netlify with Drone CI
 
 
Go to file
techknowlogick 9e4aa61975
attempt without alpine (due to uid/gid issues)
2020-01-14 21:47:36 -05:00
.drone.yml support arm platforms 2020-01-14 21:39:12 -05:00
DOCS.md sources 2018-02-15 21:08:23 +01:00
Dockerfile attempt without alpine (due to uid/gid issues) 2020-01-14 21:47:36 -05:00
LICENSE sources 2018-02-15 21:08:23 +01:00
README.md chore(readme): baseline 2018-02-15 21:34:01 +01:00
manifest.tmpl support arm platforms 2020-01-14 21:39:12 -05:00
netlify.png sources 2018-02-15 21:08:23 +01:00
netlify.svg sources 2018-02-15 21:08:23 +01:00
script.sh fix(script): secret handle 2018-02-15 22:11:09 +01:00

README.md

Drone-netlify

Netlify logo

Deploying to Netlify with Drone CI.

Docker Pulls Image GitHub release

Use case examples:

  • Automatically create staging deployments for pull requests
  • Automatically deploy and alias upon pushes to master

Usage

For the usage information and a listing of the available options please take a look at the docs.

There are two ways to deploy.

From docker

Deploy the working directory to Netlify.

docker run --rm \
  -e PLUGIN_TOKEN=xxxxx \
  -e PLUGIN_SITE_ID=xxxxxxx-xxxx-xxx-xxxxxxxx \
  -e PLUGIN_SITE_NAME=netlify-subdomain
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  lucap/drone-netlify

From Drone CI

pipeline:
  netlify:
    image: lucap/drone-netlify
    token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
    site_name: netlify-subdomain