| substitutions: | |
| _IMAGE_NAME: cos-gpu-installer | |
| _IMAGE_FOLDER_NAME: cos_gpu_installer | |
| _RUNNING_DIR: . | |
| options: | |
| env: | |
| - 'DOCKER_CLI_EXPERIMENTAL=enabled' | |
| steps: | |
| - name: 'gcr.io/cloud-builders/docker' | |
| id: 'build-and-upload-artifacts' | |
| entrypoint: 'bash' | |
| env: | |
| - 'TAG_NAME=${_TAG_NAME}' | |
| - 'OUTPUT_PROJECT=${_OUTPUT_PROJECT}' | |
| - 'BUILD_TYPE=${_BUILD_TYPE}' | |
| - 'IMAGE_NAME=${_IMAGE_NAME}' | |
| - 'IMAGE_FOLDER_NAME=${_IMAGE_FOLDER_NAME}' | |
| - 'RUNNING_DIR=${_RUNNING_DIR}' | |
| args: [ './src/scripts/docker_buildx_push_with_tags.sh'] | |
| - name: 'gcr.io/cloud-builders/gcloud' | |
| id: 'tag-multi-arch-images' | |
| entrypoint: 'bash' | |
| wait_for: ['build-and-upload-artifacts'] | |
| env: | |
| - 'TAG_NAME=${_TAG_NAME}' | |
| - 'OUTPUT_PROJECT=${_OUTPUT_PROJECT}' | |
| - 'BUILD_TYPE=${_BUILD_TYPE}' | |
| - 'IMAGE_NAME=${_IMAGE_NAME}' | |
| args: [ './src/scripts/gcloud_tag_multi_arch_images.sh'] | |
| timeout: 7200s |