Netlify

by lucaperret

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

这个网页有没有错误? 请让我们知道 或编辑 这个页面