agones.dev/agones@v1.53.0/build/release/pre_cloudbuild.yaml (about) 1 --- 2 # Copyright 2023 Google LLC 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 steps: 16 17 # 18 # Clean out the working dir, so we can replace it. 19 # 20 - name: ubuntu 21 script: rm * 22 23 # 24 # Shallow clone of the release-{x.y.z} branch from the Agones repository. 25 # 26 - name: gcr.io/cloud-builders/git 27 id: clone 28 args: 29 - clone 30 - --depth=1 31 - --branch=${_BRANCH_NAME} 32 - https://github.com/googleforgames/agones.git 33 - . 34 35 # 36 # Creates the initial make + docker build platform 37 # 38 - name: ubuntu 39 args: 40 - bash 41 - -c 42 - "echo 'FROM gcr.io/cloud-builders/docker:24.0.6\nRUN apt-get install make\nENTRYPOINT\ 43 \ [\"/usr/bin/make\"]' > Dockerfile.build" 44 - name: gcr.io/cloud-builders/docker:24.0.6 45 id: build-make-docker 46 args: [build, -f, Dockerfile.build, -t, make-docker, .] 47 48 # 49 # Ensure example images exists 50 # 51 - name: make-docker 52 id: test-examples-on-gar 53 dir: build 54 env: 55 - REGISTRY=us-docker.pkg.dev/${PROJECT_ID} 56 - DOCKER_RUN_ARGS=--network=cloudbuild 57 args: [test-examples-on-gar] 58 59 # 60 # Deploys the site by taking in the base version and deploying the previous version 61 # 62 - name: make-docker 63 id: release-deploy-site 64 dir: build 65 env: 66 - VERSION=${_VERSION} 67 args: [release-deploy-site] 68 timeout: 5400s