From 1f8387d0e1bd1e96510a235ad3e46a8ecd7b61a5 Mon Sep 17 00:00:00 2001 From: Kalaiselvim <117940852+Kalaiselvi84@users.noreply.github.com> Date: Tue, 25 Apr 2023 02:24:18 +0000 Subject: [PATCH] Clone Agones for release targets (#3119) --- build/release/post_cloudbuild.yaml | 11 +++++++++++ build/release/pre_cloudbuild.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/build/release/post_cloudbuild.yaml b/build/release/post_cloudbuild.yaml index c5e6fe05a8..fe652dcaef 100644 --- a/build/release/post_cloudbuild.yaml +++ b/build/release/post_cloudbuild.yaml @@ -13,6 +13,17 @@ # limitations under the License. steps: + # + # Shallow clone of Agones/main branch from the main repository + # + - name: "gcr.io/cloud-builders/git" + dir: "/workspace" + args: + - "clone" + - "--depth=1" + - "--branch=main" + - "https://github.com/googleforgames/agones.git" + # # Restore any caches # diff --git a/build/release/pre_cloudbuild.yaml b/build/release/pre_cloudbuild.yaml index 3e66c7ed1f..689817ed7c 100644 --- a/build/release/pre_cloudbuild.yaml +++ b/build/release/pre_cloudbuild.yaml @@ -13,6 +13,17 @@ # limitations under the License. steps: + # + # Shallow clone of Agones/main branch from the main repository + # + - name: "gcr.io/cloud-builders/git" + dir: "/workspace" + args: + - "clone" + - "--depth=1" + - "--branch=main" + - "https://github.com/googleforgames/agones.git" + # # Creates the initial make + docker build platform #