This commit is contained in:
parent
a5280f73f1
commit
490066a292
1 changed files with 24 additions and 0 deletions
24
.drone.yml
24
.drone.yml
|
@ -8,3 +8,27 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- npm install -D
|
- npm install -D
|
||||||
- npm run rebuild
|
- npm run rebuild
|
||||||
|
#Todo make this into a separate container
|
||||||
|
- name: package
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- apk update
|
||||||
|
- apk add zip git
|
||||||
|
- echo FILENAME=`date +%Y%m%d%H%m`-`git rev-parse --short HEAD`.zip >> environment
|
||||||
|
- source environment
|
||||||
|
- zip -r $FILENAME build
|
||||||
|
|
||||||
|
- name: b2
|
||||||
|
image: tianon/backblaze-b2:2
|
||||||
|
|
||||||
|
environment:
|
||||||
|
BUCKET: carbon-artifacts
|
||||||
|
ACCOUNT:
|
||||||
|
from_secret: b2_account_id
|
||||||
|
KEY:
|
||||||
|
from_secret: b2_application_key
|
||||||
|
commands:
|
||||||
|
- source environment
|
||||||
|
- b2 authorize-account $ACCOUNT $KEY
|
||||||
|
- b2 upload-file $BUCKET $FILENAME $FILENAME
|
||||||
|
- echo Build artifacts avaliable at `b2 make-friendly-url $BUCKET $FILENAME`
|
||||||
|
|
Loading…
Reference in a new issue