github.com/jenkins-x/test-infra@v0.0.7/testgrid/images/BUILD.bazel (about) 1 # Copyright 2018 The Kubernetes Authors. 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 load("//def:image.bzl", "tags") 16 load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push") 17 load("@io_bazel_rules_docker//docker:docker.bzl", "docker_bundle") 18 load("@io_bazel_rules_docker//go:image.bzl", "go_image") 19 20 package(default_visibility = ["//testgrid:__subpackages__"]) 21 22 # TODO(fejta): move registry to a variable 23 docker_bundle( 24 name = "images", 25 images = tags(**{ 26 "gcr.io/fejta-prod/testgrid/updater": ":updater", 27 "gcr.io/fejta-prod/testgrid/configurator": ":configurator", 28 }), 29 stamp = True, 30 ) 31 32 docker_push( 33 name = "push", 34 bundle = ":images", 35 ) 36 37 go_image( 38 name = "updater", 39 binary = "//testgrid/cmd/updater", 40 ) 41 42 go_image( 43 name = "configurator", 44 binary = "//testgrid/cmd/configurator", 45 ) 46 47 filegroup( 48 name = "package-srcs", 49 srcs = glob(["**"]), 50 tags = ["automanaged"], 51 visibility = ["//visibility:private"], 52 ) 53 54 filegroup( 55 name = "all-srcs", 56 srcs = [":package-srcs"], 57 tags = ["automanaged"], 58 visibility = ["//visibility:public"], 59 )