mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 22:15:27 -05:00
shutdown after build complete
This commit is contained in:
@@ -33,7 +33,8 @@ popd
|
||||
|
||||
echo "Launching build machine."
|
||||
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 \
|
||||
--metadata=release_tag=v${VER},prerelease=${PRE} \
|
||||
--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}"
|
||||
|
||||
fi
|
||||
|
||||
shutdown -h +5
|
||||
|
||||
Reference in New Issue
Block a user