Skip to content

Commit

Permalink
Build peribolos using bazel test-infra repository
Browse files Browse the repository at this point in the history
  • Loading branch information
fejta committed Jan 17, 2019
1 parent 2a67214 commit 6e3b69e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
39 changes: 39 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,42 @@ git_repository(
commit = "4ce715fbe67d8fbed05ec2bb47a148e754100a4b",
remote = "https://github.com/kubernetes/repo-infra.git",
)

# TODO(fejta): create a test_infra_repositories and delete the below
## IMPLICIT test-infra repos

http_archive(
name = "io_bazel_rules_k8s",
sha256 = "91fef3e6054096a8947289ba0b6da3cba559ecb11c851d7bdfc9ca395b46d8d8",
strip_prefix = "rules_k8s-0.1",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/v0.1.tar.gz"],
)

load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_repositories")

k8s_repositories()

http_archive(
name = "io_bazel_rules_docker",
sha256 = "5235045774d2f40f37331636378f21fe11f69906c0386a790c5987a09211c3c4",
strip_prefix = "rules_docker-8010a50ef03d1e13f1bebabfc625478da075fa60",
urls = ["https://github.com/bazelbuild/rules_docker/archive/8010a50ef03d1e13f1bebabfc625478da075fa60.tar.gz"],
)

load(
"@io_bazel_rules_docker//go:image.bzl",
_go_repositories = "repositories",
)

_go_repositories()

load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
container_repositories = "repositories",
)

container_repositories()
## END test-infra repos

## Repos generated by hack/update-deps.sh below
6 changes: 4 additions & 2 deletions admin/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
PERIBOLOS = "@io_k8s_test_infra//prow/cmd/peribolos"

sh_binary(
name = "update",
srcs = ["update.sh"],
args = [
"$(location //vendor/k8s.io/test-infra/prow/cmd/peribolos)",
"$(location %s)" % PERIBOLOS,
"--config-path",
"$(location //config:config.yaml)",
"--fix-org",
Expand All @@ -16,7 +18,7 @@ sh_binary(
],
data = [
"//config:config.yaml",
"//vendor/k8s.io/test-infra/prow/cmd/peribolos",
PERIBOLOS,
],
)

Expand Down

0 comments on commit 6e3b69e

Please sign in to comment.