|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +timeout: 7200s # 2 hours |
| 16 | +substitutions: |
| 17 | + _GAPIC_GENERATOR_JAVA_VERSION: '2.57.1-SNAPSHOT' # {x-version-update:gapic-generator-java:current} |
| 18 | + _IMAGE_NAME: "us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/java-library-generation" |
| 19 | + _SHA_IMAGE_ID: "${_IMAGE_NAME}:${COMMIT_SHA}" |
| 20 | + _VERSIONED_IMAGE_ID: "${_IMAGE_NAME}:${_GAPIC_GENERATOR_JAVA_VERSION}" |
| 21 | +steps: |
| 22 | + # Library generation build |
| 23 | + - name: gcr.io/cloud-builders/docker |
| 24 | + args: [ |
| 25 | + "build", |
| 26 | + "-t", "${_SHA_IMAGE_ID}", |
| 27 | + "-t", "${_VERSIONED_IMAGE_ID}", |
| 28 | + "-f", ".cloudbuild/library_generation/library_generation_airlock.Dockerfile", |
| 29 | + "." |
| 30 | + ] |
| 31 | + id: library-generation-build |
| 32 | + waitFor: ["-"] |
| 33 | + env: |
| 34 | + - 'DOCKER_BUILDKIT=1' |
| 35 | + |
| 36 | +options: |
| 37 | + machineType: 'E2_HIGHCPU_8' |
| 38 | + requestedVerifyOption: VERIFIED # For provenance attestation generation |
| 39 | + |
| 40 | +images: |
| 41 | + - ${_SHA_IMAGE_ID} |
| 42 | + - ${_VERSIONED_IMAGE_ID} |
0 commit comments