Deploying to Netlify with Drone CI
 
 
Go to file
mat ess 4118f27548
continuous-integration/drone/push Build is passing Details
Add force_tag
2022-10-21 00:03:13 -04:00
.drone.yml Add force_tag 2022-10-21 00:03:13 -04:00
DOCS.md Updates 2022-10-20 17:58:05 -04:00
Dockerfile Updates 2022-10-20 17:58:05 -04:00
LICENSE sources 2018-02-15 21:08:23 +01:00
README.md Fix script 2022-10-20 18:47:15 -04:00
manifest.tmpl Support only amd64 for now 2022-10-20 18:05:25 -04: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 Add debug 2.2-electric_boogaloo 2022-10-20 23:15:12 -04:00

README.md

drone-netlify

Netlify logo

Deploying to Netlify with Drone CI.

Docker Pulls

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=$NETLIFY_TOKEN \
  -e PLUGIN_SITE=my-netlify-site \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  internetmat/drone-netlify

From Drone CI

pipeline:
  netlify:
    image: internetmat/drone-netlify
    settings:
      token:
        from_secret: netlify_token
      site:
        from_secret: netlify_site_id