From 051a7b8d798b2fa08e4711b50f07db6b0661e4f9 Mon Sep 17 00:00:00 2001 From: moonstar-x Date: Wed, 11 Aug 2021 14:57:10 -0500 Subject: [PATCH] Added react-netlify-build. --- react/react-netlify-build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 react/react-netlify-build.yml diff --git a/react/react-netlify-build.yml b/react/react-netlify-build.yml new file mode 100644 index 0000000..658b2a2 --- /dev/null +++ b/react/react-netlify-build.yml @@ -0,0 +1,32 @@ +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