Compare commits
No commits in common. "4d59b1a9acdb0ec7f173ebf6d29f1532d13f0777" and "20bacce0682cc4c31e8a8f655808d99b5d886c98" have entirely different histories.
4d59b1a9ac
...
20bacce068
1 changed files with 4 additions and 27 deletions
31
.drone.yml
31
.drone.yml
|
@ -11,33 +11,11 @@ steps:
|
||||||
|
|
||||||
- name: package
|
- name: package
|
||||||
image: fuww/alpine-zip
|
image: fuww/alpine-zip
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
commands:
|
commands:
|
||||||
- SHORTREV=`echo $DRONE_COMMIT | cut -b 1-8`
|
- SHORTREV=`echo $DRONE_COMMIT | cut -b 1-8`
|
||||||
- echo NAME=`date +%Y%m%d%H%m`-$SHORTREV >> environment
|
- echo FILENAME=`date +%Y%m%d%H%m`-$SHORTREV.zip >> environment
|
||||||
- source environment
|
- source environment
|
||||||
- zip -r $NAME.zip build
|
- zip -r $FILENAME build
|
||||||
|
|
||||||
- name: dev.carbon.chat
|
|
||||||
image: drillster/drone-rsync
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
settings:
|
|
||||||
hosts:
|
|
||||||
from_secret: SSH_HOST
|
|
||||||
port:
|
|
||||||
from_secret: SSH_PORT
|
|
||||||
user:
|
|
||||||
from_secret: SSH_USERNAME
|
|
||||||
key:
|
|
||||||
from_secret: SSH_KEY
|
|
||||||
source: ./build/*
|
|
||||||
target: ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
recursive: true
|
|
||||||
|
|
||||||
|
|
||||||
- name: b2
|
- name: b2
|
||||||
image: tianon/backblaze-b2:2
|
image: tianon/backblaze-b2:2
|
||||||
|
@ -50,9 +28,8 @@ steps:
|
||||||
from_secret: b2_account_id
|
from_secret: b2_account_id
|
||||||
KEY:
|
KEY:
|
||||||
from_secret: b2_application_key
|
from_secret: b2_application_key
|
||||||
COMMIT: ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
commands:
|
commands:
|
||||||
- source environment
|
- source environment
|
||||||
- b2 authorize-account $ACCOUNT $KEY
|
- b2 authorize-account $ACCOUNT $KEY
|
||||||
- b2 upload-file $BUCKET $NAME.zip $NAME.zip
|
- b2 upload-file $BUCKET $FILENAME $FILENAME
|
||||||
- echo Build artifacts avaliable at `b2 make-friendly-url $BUCKET $NAME.zip` and at https://dev.carbon.chat/$COMMIT
|
- echo Build artifacts avaliable at `b2 make-friendly-url $BUCKET $FILENAME`
|
||||||
|
|
Loading…
Reference in a new issue