mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
shutdown after build complete
This commit is contained in:
parent
3e809f4750
commit
32842bc14b
@ -33,7 +33,8 @@ popd
|
|||||||
|
|
||||||
echo "Launching build machine."
|
echo "Launching build machine."
|
||||||
DIR="$(dirname "$0")"
|
DIR="$(dirname "$0")"
|
||||||
gcloud compute instances create "build-upload" \
|
RAND="$(openssl rand -hex 5)"
|
||||||
|
gcloud compute instances create "v2raycore-${RAND}" \
|
||||||
--machine-type=n1-highcpu-2 \
|
--machine-type=n1-highcpu-2 \
|
||||||
--metadata=release_tag=v${VER},prerelease=${PRE} \
|
--metadata=release_tag=v${VER},prerelease=${PRE} \
|
||||||
--metadata-from-file=startup-script=${DIR}/release-ci.sh \
|
--metadata-from-file=startup-script=${DIR}/release-ci.sh \
|
||||||
|
@ -110,3 +110,5 @@ DOCKER_HUB_API=https://registry.hub.docker.com/u/v2ray/official/trigger/${DOCKER
|
|||||||
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST "${DOCKER_HUB_API}"
|
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST "${DOCKER_HUB_API}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shutdown -h +5
|
||||||
|
Loading…
Reference in New Issue
Block a user