blob: 8098e4e8b9dd7f31068fbe5a87ee1effeb6e0b06 [file] [log] [blame]
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
substitutions:
'_PROJECT_NAME': ''
'_SERVICE_ACCOUNT': 'compute@cloud-image-docker-builder.google.com.iam.gserviceaccount.com'
'_COS_CUSTOMIZER': 'cos_customizer'
steps:
- name: 'gcr.io/cloud-builders/gsutil'
entrypoint: '/bin/bash'
args: ["-c", "mkdir deps_dir"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["-m", "cp", "gs://cos-tools/19216.104.5/lakitu/toolchain.tar.xz", "deps_dir"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["-m", "cp", "gs://cos-tools/19216.104.5/lakitu/kernel-headers.tgz", "deps_dir"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["-m", "cp", "gs://cos-tools/19216.104.5/lakitu/nvidia-drivers-580.95.05.tgz", "deps_dir/prepackaged-drivers.tgz"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["-m", "cp", "gs://cos-tools/19216.104.5/lakitu/gpu_driver_versions.bin", "deps_dir"]
- name: 'gcr.io/cloud-builders/gcloud'
args: ["builds", "submit", "--config=testing/gpu_test/gpu_test.yaml",
"--substitutions=_DRIVER_VERSION=580.95.05,_INPUT_IMAGE=cos-125-19216-104-5,_DEPS_DIR=deps_dir,_PROJECT_NAME=${_PROJECT_NAME},_SERVICE_ACCOUNT=${_SERVICE_ACCOUNT},_COS_CUSTOMIZER=${_COS_CUSTOMIZER}",
"."]
timeout: "7200s"