1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-07 01:46:33 -05:00
v2fly/tools/release/release-ci.sh

40 lines
1.4 KiB
Bash
Raw Normal View History

2015-09-16 10:30:17 -04:00
#!/bin/bash
2016-08-20 14:55:45 -04:00
go install v2ray.com/core/tools/build
2015-10-18 05:51:02 -04:00
$GOPATH/bin/build --os=windows --arch=x86 --zip
$GOPATH/bin/build --os=windows --arch=x64 --zip
$GOPATH/bin/build --os=macos --arch=x64 --zip
$GOPATH/bin/build --os=linux --arch=x86 --zip
$GOPATH/bin/build --os=linux --arch=x64 --zip
$GOPATH/bin/build --os=linux --arch=arm --zip
$GOPATH/bin/build --os=linux --arch=arm64 --zip
2016-02-20 06:32:42 -05:00
$GOPATH/bin/build --os=linux --arch=mips64 --zip
2016-07-27 10:56:32 -04:00
$GOPATH/bin/build --os=freebsd --arch=x86 --zip
2016-10-17 08:41:54 -04:00
$GOPATH/bin/build --os=freebsd --arch=amd64 --zip
2016-10-17 09:52:07 -04:00
$GOPATH/bin/build --os=openbsd --arch=x86 --zip
$GOPATH/bin/build --os=openbsd --arch=amd64 --zip
INSTALL_DIR=_install
git clone "https://github.com/v2ray/install.git" ${INSTALL_DIR}
2017-01-11 11:53:43 -05:00
2017-01-12 04:57:28 -05:00
RELEASE_DIR=${INSTALL_DIR}/releases/${TRAVIS_TAG}
mkdir -p ${RELEASE_DIR}/
cp $GOPATH/bin/metadata.txt ${RELEASE_DIR}/
cp $GOPATH/bin/v2ray-*.zip ${RELEASE_DIR}/
2017-01-31 08:36:20 -05:00
echo ${TRAVIS_TAG} > ${INSTALL_DIR}/releases/latest.txt
2017-01-11 11:53:43 -05:00
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"
2016-12-02 07:42:42 -05:00
git add -A
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}"