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