33 lines
605 B
YAML
33 lines
605 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: Build and Publish to Netlify
|
|
|
|
trigger:
|
|
event:
|
|
include:
|
|
- push
|
|
branch:
|
|
- master
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:current-stretch
|
|
environment:
|
|
REACT_APP_API_URL:
|
|
from_secret: API_URL
|
|
REACT_APP_GA_TRACKING_ID:
|
|
from_secret: GA_UA
|
|
commands:
|
|
- yarn install --frozen-lockfile
|
|
- yarn eslint:errors-only
|
|
- yarn build
|
|
|
|
- name: publish
|
|
image: lucap/drone-netlify
|
|
settings:
|
|
site_id:
|
|
from_secret: NETLIFY_SITE_ID
|
|
token:
|
|
from_secret: NETLIFY_TOKEN
|
|
path: ./build
|