Add drone CI #5

Merged
bad merged 9 commits from drone into princess 2020-10-20 09:49:56 +00:00
Showing only changes of commit c725b33679 - Show all commits

View file

@ -8,19 +8,17 @@ steps:
commands:
- npm install -D
- npm run rebuild
#Todo make this into a separate container
- name: package
image: alpine
image: fuww/alpine-zip
commands:
- apk update
- apk add zip git
- echo FILENAME=`date +%Y%m%d%H%m`-`git rev-parse --short HEAD`.zip >> environment
- SHORTREV=`echo $DRONE_COMMIT | cut -b 1-8`
- echo FILENAME=`date +%Y%m%d%H%m`-$SHORTREV.zip >> environment
- source environment
- zip -r $FILENAME build
- name: b2
image: tianon/backblaze-b2:2
environment:
BUCKET: carbon-artifacts
ACCOUNT: