agones.dev/agones@v1.53.0/examples/nodejs-simple/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    # Creates the initial make + docker build platform
    18    #
    19    - name: ubuntu
    20      script: |
    21        echo 'FROM gcr.io/cloud-builders/docker\nRUN apt-get install make\nENTRYPOINT [\"/usr/bin/make\"]' > Dockerfile.build
    22    - name: gcr.io/cloud-builders/docker
    23      id: build-make-docker
    24      entrypoint: docker
    25      args: [build, -f, Dockerfile.build, -t, make-docker, .]
    26  
    27    # build and push nodejs-simple image to GCR
    28    - name: make-docker
    29      id: push
    30      dir: /workspace/examples/nodejs-simple/
    31      env: ['REPOSITORY=${_REPOSITORY}']
    32      script: |
    33        make push
    34  options:
    35    dynamic_substitutions: true
    36  substitutions:
    37    _REPOSITORY: us-docker.pkg.dev/${PROJECT_ID}/examples
    38  timeout: 1800s