/drone-netlify

Drone plugin to push a site to netlify

Primary LanguageShellMIT LicenseMIT

drone-netlify

Drone plugin to push a site to netlify

Recommend that you predefine a secret in drone and reference it.

kind: pipeline
name: default

steps:
- name: netlify
  image: airbornelamb/drone-netlify
  settings:
    netlify_auth_token:
      from_secret: DRONENAMEDSECRET
    netlify_site_id: xxxxx-xxxx-xxxx
    dir: /drone/src/_site # path must be defined, this is _site for Jekyll
    message: "Yay I uploaded" # Optional deploy message
    production: yes #If yes, will deploy live. If otherwise, will deploy to preview branch

Other method where the secret is passed.

kind: pipeline
name: default

steps:
- name: netlify
  image: airbornelamb/drone-netlify
  settings:
    netlify_auth_token: xxxxx-xxxx-xxxx
    netlify_site_id: xxxxx-xxxx-xxxx
    dir: /drone/src/_site # path must be defined, this is _site for Jekyll
    message: "Yay I uploaded" # Optional deploy message
    production: yes #If yes, will deploy live. If otherwise, will deploy to preview branch