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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue