Deploy current master branch to master.tus.io
This commit is contained in:
parent
4a439ac555
commit
bffd8f24b0
|
@ -199,9 +199,9 @@ deploy {
|
||||||
name = "Deploy tusd"
|
name = "Deploy tusd"
|
||||||
roles {
|
roles {
|
||||||
role = "{{{init.paths.roles_dir}}}/deploy/v1.4.0"
|
role = "{{{init.paths.roles_dir}}}/deploy/v1.4.0"
|
||||||
ansistrano_get_url = "https://github.com/tus/tusd/releases/download/0.6.0/tusd_linux_amd64.tar.gz"
|
ansistrano_deploy_from = "./files/tusd_linux_amd64.tar.gz"
|
||||||
ansistrano_deploy_to = "{{{config.global.approot}}}"
|
ansistrano_deploy_to = "{{{config.global.approot}}}"
|
||||||
ansistrano_deploy_via = "download_unarchive"
|
ansistrano_deploy_via = "copy_unarchive"
|
||||||
ansistrano_group = "ubuntu"
|
ansistrano_group = "ubuntu"
|
||||||
}
|
}
|
||||||
tasks {
|
tasks {
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
source "${__dir}/build_funcs.sh"
|
||||||
|
|
||||||
|
# Compile release archive for master.tus.io server
|
||||||
|
compile linux amd64
|
||||||
|
maketar linux amd64
|
||||||
|
|
||||||
|
cp ./tusd_linux_amd64.tar.gz "${__dir}/../.infra/files/"
|
||||||
|
|
||||||
|
which frey || sudo npm install -g frey
|
||||||
|
FREY="$(which frey)"
|
||||||
|
|
||||||
|
$FREY --projectDir "${__dir}/../.infra" deploy
|
11
.travis.yml
11
.travis.yml
|
@ -26,16 +26,19 @@ script:
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- ./.scripts/build_all.sh
|
- ./.scripts/build_all.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
- provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
secure: dV3wr9ebEps3YrzIoqmkYc7fw0IECz7QLPRENPSxTJyd5TTYXGsnTS26cMe2LdGwYrXw0njt2GGovMyBZFTtxyYI3mMO4AZRwvZfx/yGzPWJBbVi6NjZVRg/bpyK+mQJ5BUlkPAYJmRpdc6qD+nvCGakBOxoByC5XDK+yM+bKFs=
|
secure: dV3wr9ebEps3YrzIoqmkYc7fw0IECz7QLPRENPSxTJyd5TTYXGsnTS26cMe2LdGwYrXw0njt2GGovMyBZFTtxyYI3mMO4AZRwvZfx/yGzPWJBbVi6NjZVRg/bpyK+mQJ5BUlkPAYJmRpdc6qD+nvCGakBOxoByC5XDK+yM+bKFs=
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: tusd_*.*
|
file: tusd_*.*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
|
||||||
tags: true
|
tags: true
|
||||||
go: 1.7
|
go: 1.7
|
||||||
repo: tus/tusd
|
repo: tus/tusd
|
||||||
after_deploy:
|
- provider: script
|
||||||
- make frey && frey setup --force-yes --projectDir .infra
|
script: .scripts/deploy_current.sh
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
go: 1.7
|
||||||
|
repo: tus/tusd
|
||||||
|
|
Loading…
Reference in New Issue