From ea27f7c434734a3e8c63d76ddba6c1ccb09ee4f2 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 2 Dec 2016 13:12:45 +0100 Subject: [PATCH] trigger official docker release on new tag --- .travis.yml | 4 ++++ tools/release/release-ci.sh | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a19ff45a..23aaec96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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= diff --git a/tools/release/release-ci.sh b/tools/release/release-ci.sh index 4c3c4be2..df6066e0 100755 --- a/tools/release/release-ci.sh +++ b/tools/release/release-ci.sh @@ -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 \ No newline at end of file +$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 "admin@v2ray.com" +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}"