From aed29cf7f18592698a250c34655fd69b1ee2b0ca Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Fri, 10 Feb 2023 12:42:51 -0800 Subject: [PATCH] Run `build-release` within build image (#2945) Shifting the Cloud Build submission into the build image, so that it utilises the credentials and configured Google Cloud project that is set up at the beginning of the release process. Co-authored-by: Robert Bailey --- build/includes/release.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/includes/release.mk b/build/includes/release.mk index 746ac0575b..9286782982 100644 --- a/build/includes/release.mk +++ b/build/includes/release.mk @@ -96,5 +96,5 @@ do-release: $(ensure-build-image) @echo "Now go make the $(RELEASE_VERSION) release on Github!" build-release: - cd $(agones_path) && gcloud builds submit . --substitutions _VERSION=$(base_version) --config=./build/release/cloudbuild.yaml $(ARGS) - + docker run --rm $(common_mounts) -w $(workdir_path) $(build_tag) \ + gcloud builds submit . --substitutions _VERSION=$(base_version) --config=./build/release/cloudbuild.yaml $(ARGS)