blob: 7d93cb5d4a98210deb631cbaec94535984558711 [file] [log] [blame]
# Copyright 2017 The Bazel Authors. All rights reserved.
#
# 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.
timeout: 21600s
steps:
# Step: build the fully loaded container using rules_docker
- name: 'gcr.io/cloud-builders/bazel'
args: ['run' , '--verbose_failures', '--spawn_strategy=standalone', '--genrule_strategy=standalone', '//${_DIR}:fl-toolchain']
id: 'fl-container'
waitFor:
- "-" # wait for nothing - start immediately
# Step: re-tag the image
- name: gcr.io/cloud-builders/docker
args: ['tag', 'bazel/${_DIR}:fl-toolchain', 'gcr.io/${_PROJECT}/${_CONTAINER}:${_TAG}']
id: 'fl-container-tag'
waitFor: # wait for all artifacts to be ready
- 'fl-container'
# Step: test the image
- name: gcr.io/gcp-runtimes/structure_test
args: [
'--image', 'gcr.io/${_PROJECT}/${_CONTAINER}:${_TAG}',
'--config', '/workspace/container/test/rbe-debian8.yaml']
# Build the release-container
images:
- 'gcr.io/${_PROJECT}/${_CONTAINER}:${_TAG}'