From 32842bc14b66e3aa5877887f15ec4f90e4417a04 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 4 Apr 2017 23:11:52 +0200 Subject: [PATCH] shutdown after build complete --- tools/release/make-release.sh | 3 ++- tools/release/release-ci.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/release/make-release.sh b/tools/release/make-release.sh index fa1783519..781ac9bd0 100755 --- a/tools/release/make-release.sh +++ b/tools/release/make-release.sh @@ -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 \ diff --git a/tools/release/release-ci.sh b/tools/release/release-ci.sh index ee63f82b0..b1a271f33 100755 --- a/tools/release/release-ci.sh +++ b/tools/release/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