forked from v2ray/v2ray-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trigger official docker release on new tag
- Loading branch information
1 parent
1186b0e
commit ea27f7c
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}" |