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 #