Update drone.yml to use a separate zip container

This commit is contained in:
Bad 2020-10-20 11:30:08 +02:00
parent 70649e4f5e
commit c725b33679

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: