From a268ca7f9ab0f5dfecd4451d36bffc9cd7064c03 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 1 Sep 2020 14:31:28 +0200 Subject: [PATCH] Add .drone.yml for CI --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..40a8e2e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +--- +kind: pipeline +type: docker +name: default + +platform: + os: linux + arch: arm64 + +steps: +- name: frontend + image: node:alpine + commands: + - apk --no-cache add python2 build-base + - yarn config set network-timeout 100000 + - yarn --cwd htdocs install + - yarn --cwd htdocs --offline build + +- name: backend + image: golang:alpine + commands: + - apk --no-cache add go-bindata + - sed -i '/yarn --cwd htdocs --offline build/d' static.go + - go generate + - go build