mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
Add a new builder to build crosvm in crOS tree, and all the depencies of this new builder. BUG=b:240692674 TESTED=led get-builder luci.crosvm.ci:chromeos_amd64-generic | led edit-cr-cl https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3966928 | led edit-recipe-bundle | led edit -r build_chromeos_hatch | led launch Change-Id: Id2f284139922916edd2dd584f576da9fb3445518 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3966928 Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Zihan Chen <zihanchen@google.com>
22 lines
1.1 KiB
YAML
22 lines
1.1 KiB
YAML
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
steps:
|
|
# insecure builder required due to cros_sdk can only run in a privileged container
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: [ 'buildx', 'create', '--use', '--name', 'insecure-builder', '--buildkitd-flags', '--allow-insecure-entitlement security.insecure']
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: [ 'buildx', 'build', '-t', 'gcr.io/crosvm-infra-experimental/crosvm_cros_cloudbuild', '--cache-to=type=local,dest=/docker_cache', '--allow', 'security.insecure', '.' ]
|
|
# docker push is separated out because of https://github.com/docker/buildx/issues/1205
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: [ 'buildx', 'stop', 'insecure-builder']
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args: [ 'buildx', 'build', '-t', 'gcr.io/crosvm-infra-experimental/crosvm_cros_cloudbuild', '--cache-from=type=local,src=/docker_cache', '--push', '--allow', 'security.insecure', '.' ]
|
|
timeout: 30000s
|
|
options:
|
|
machineType: 'E2_HIGHCPU_32'
|
|
diskSizeGb: '1000'
|
|
volumes:
|
|
- name: 'docker_cache'
|
|
path: '/docker_cache'
|