Update drone.yml to use a separate zip container
This commit is contained in:
parent
70649e4f5e
commit
c725b33679
1 changed files with 4 additions and 6 deletions
10
.drone.yml
10
.drone.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue