Netlify

by lucaperret

The example Yaml configurations in this file are using the legacy 0.8 syntax. If you are using Drone 1.0 or Drone Cloud please ensure you use the appropriate 1.0 syntax. Learn more here.

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

¿Hay algún error en esta página? Por favor, háganoslo saber o edite esta página.