Skip to content

Commit c0f8638

Browse files
authored
Merge pull request #26 from laincloud/aliyun
deploy to aliyun
2 parents 84a640e + 0548a27 commit c0f8638

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99

1010
install:
1111
- go get github.com/Masterminds/glide
12+
- go get github.com/aliyun/ossutil
1213

1314
before_script:
1415
- glide install
@@ -31,6 +32,9 @@ script:
3132
after_success:
3233
- bash <(curl -s https://codecov.io/bash)
3334
- xz -9k bin/deployd
35+
- if [ "$TRAVIS_TAG" != "" ]; then
36+
ossutil cp bin/deployd.xz oss://lain/binary/deployd/releases/download/${TRAVIS_TAG}/deployd.xz -e ${ENDPOINT} -i ${ACCESS_KEY_ID} -k ${ACCESS_KEY_SECRET};
37+
fi
3438
deploy:
3539
provider: releases
3640
api_key:

0 commit comments

Comments
 (0)