drone-netlify/DOCS.md

2.2 KiB

date title author tags repo logo image
2018-02-15T00:00:00+00:00 Netlify lucaperret
deploy
netlify
lucaperret/drone-netlify netlify.svg lucap/drone-netlify

The netlify plugin deploy your build to netlify.com.

The below pipeline configuration demonstrates simple usage to deploy the current working directory:

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

Example configuration for assigning Netlify subdomain:

pipeline:
  netlify:
    image: lucap/drone-netlify
    token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
+   site_name: my-deployment-alias

Example configuration with Custom domain:

pipeline:
  netlify:
    image: lucap/drone-netlify
    token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
-   site_name: my-deployment-alias
+   domain: my-custom-domain.com

Example configuration for specifying environment:

pipeline:
  netlify:
    image: lucap/drone-netlify
    token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
-   domain: my-custom-domain.com
+   environment: production

Example configuration to deploy a specific folder or Zip (default current working directory):

pipeline:
  netlify:
    image: lucap/drone-netlify
    token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
-   environment: production
+   path: ./dist

Example configuration using token from secrets:

pipeline:
  netlify:
    image: lucap/drone-netlify
-   token: xxxxx
    site_id: xxxxxxx-xxxx-xxx-xxxxxxxx
+   secrets: [ netlify_token ]

Secret Reference

netlify_token
Netlify token

Parameter Reference

token
Required Netlify token
site_id
Required Set the Site ID (or API ID in your Site settings dashboard)
site_name
Set a Netlify subdomain
domain
Set your custom domain
environment
Specify an environment
path
Path to a folder or zip file to deploy