blob: 056a3714587b17ae9b85cf5588070475d5a56927 [file] [log] [blame]
Serge Bazanski5de0b322021-03-20 12:04:26 +00001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
Serge Bazanski97b5cd72023-07-28 17:14:50 +00004 name = "remote-cache_lib",
Serge Bazanski5de0b322021-03-20 12:04:26 +00005 srcs = [
6 "main.go",
7 "service.go",
8 ],
9 importpath = "code.hackerspace.pl/hscloud/devtools/ci/remote-cache",
10 visibility = ["//visibility:private"],
11 deps = [
Serge Bazanski97b5cd72023-07-28 17:14:50 +000012 "//go/mirko",
13 "@com_github_golang_glog//:glog",
14 "@com_github_minio_minio_go_v7//:minio-go",
15 "@com_github_minio_minio_go_v7//pkg/credentials",
Serge Bazanski5de0b322021-03-20 12:04:26 +000016 ],
17)
18
19go_binary(
20 name = "remote-cache",
Serge Bazanski97b5cd72023-07-28 17:14:50 +000021 embed = [":remote-cache_lib"],
Serge Bazanski5de0b322021-03-20 12:04:26 +000022 visibility = ["//visibility:public"],
23)