Skip to content

Commit

Permalink
trigger official docker release on new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Dec 2, 2016
1 parent 1186b0e commit ea27f7c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ deploy:
skip_cleanup: true
on:
tags: true
env:
global:
- secure: GQrOIEosXGR8NXQVeRmNuyz0TSDPyq0UHtpObhA0ZKHvhO4eNWUVRTwF/V1vrcNxMDcNQBeTVHIdWJYTaq8iG0qtEPiCCt3wVqX8jRssRNjw7dY1a/LK7Jj1c3py7vZPWnEC+i4x0sJJLeDTnY/f+YaScAnEQrVwEaRSH3A0TDMPMG7/7UJVfPtFYkqt3BSDGSBOgKsh9IJzaZ6zFARiQJLxuGz9pEpKwgWlErKwcs5JuHxXBdLXh84DE7kBmMi5j5zdp9O77Ed+bjZ2MZ3WHLSZyab2OlJICt8Wy0b8dzvqefek0t9TTu1M+GxtQjPfr//cToK0wzOQSOKX5hSUcygGJB7xcTs4xzArDWtDBBsiX/v1s965enODEjhqyvb2yGl5VrlN2SEOHAXsLgnlY+0NMieeY0i1GA/d0pgoRmQphfXuoaVVRlCFQT85lF62ieg1Uzob8hra2jAkumrsOcFZyYbDFQdWwqswbz2Z+S79YBmcdYucHqYuGwYQuZEmasv0p8F/LF0hQ8VaY57lZ3OIfegM+hIo9yf/wlTgnXt2UWe0U1ktQcjz6O6obVu0vnV/Q5LzIjhB++agABdk/kzM+m2+79+59IqEyymiMH38kXDOU7YCxAQkQDzsP662MEVdbst8/IpWhHwhys8ezdsKM98vg3uLd391E8vwhKI=
- secure: i+BVZ0oC1YnQb/2EprCFlQh3uzO2Kwu0LSyelFF0mfsIR7nSbVEP1T5gvBxyM8ZsuTfGW+70FLdfvntkwXXJ7sQm5bJlKlIQa0G5eC8G6dqpGknEgX5PZ1h+BoGkhZHDp12T0bJF3McoECMERAV/R6uFqn5LlTO5M0LSTmeqQRPlaRQnt4Qh0PD3REHCY4MrNZZuhUOxOA6cttJwUUtr6ECTSfRYxK7Dg2s/dUeBrfbPOvNhQkPbosv5Wft3S5+WYtin/4DRZO/T1Gd2WsOdEL8BqqXAfA1s4qW+U0zmp+vIG2hTlKS1fHWEfM9bpqShHSO/DKqPbwI0v8dIkTbEShOrF/+aZ2HnWSMbyXJBjtVKh2h8uDLqHCRuVXuQix2cS/5+RRj8vPoAWIa09Z60g4SrtJe1BKTPj3PLXlcN8KRIIXaJq9Lh+SDqxlWsK2m18AYVtAwkAAdyDPHOi0wy79mF1sSweD3/um+S+pmgOlmRoYOpXb17SR6RkOgETEzeihrG0Qmrlvsgp94IswDN+AvVFp17w3wFVd+tApHYTXoxuEl8qoqsNBtAE778hgrUt1cwaWM3Vw5x3EuXWYYxMjlNNC5lURpBL6jlStPFTrE4UnK5KEyIE7GZQOeJV9SplxYGUvagerv1mREtYob6S1hcOedyUAo6EIsAzJ8l4Ek=
17 changes: 16 additions & 1 deletion tools/release/release-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,19 @@ $GOPATH/bin/build --os=linux --arch=mips64 --zip
$GOPATH/bin/build --os=freebsd --arch=x86 --zip
$GOPATH/bin/build --os=freebsd --arch=amd64 --zip
$GOPATH/bin/build --os=openbsd --arch=x86 --zip
$GOPATH/bin/build --os=openbsd --arch=amd64 --zip
$GOPATH/bin/build --os=openbsd --arch=amd64 --zip

INSTALL_DIR=_install

git clone "https://github.com/v2ray/install.git" ${INSTALL_DIR}
cp $GOPATH/bin/v2ray-${TRAVIS_TAG}-linux-64/v2ray ${INSTALL_DIR}/docker/official/

pushd ${INSTALL_DIR}
git config user.name "V2Ray Auto Build"
git config user.email "[email protected]"
git commit -m "Update for ${TRAVIS_TAG}"
git push "https://${GIT_KEY_INSTALL}@github.com/v2ray/install.git" master
popd

DOCKER_HUB_API=https://registry.hub.docker.com/u/v2ray/official/trigger/${DOCKER_HUB_KEY}/
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST "${DOCKER_HUB_API}"

0 comments on commit ea27f7c

Please sign in to comment.