-
Notifications
You must be signed in to change notification settings - Fork 3
/
BUILD.bazel
47 lines (42 loc) · 1.56 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@github_opensourceways_community_robot_lib//:image.bzl", "build_plugin_image", "push_image", "image_tags")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/opensourceways/robot-gitee-scavenger
gazelle(name = "gazelle")
build_plugin_image(
name = "image",
plugin = "robot-gitee-scavenger",
)
push_image(
name = "push_image",
images = image_tags(
target = ":image",
),
)
go_library(
name = "go_default_library",
srcs = [
"config.go",
"main.go",
"robot.go",
"task.go",
],
importpath = "github.com/opensourceways/robot-gitee-scavenger",
visibility = ["//visibility:private"],
deps = [
"@com_github_opensourceways_community_robot_lib//config:go_default_library",
"@com_github_opensourceways_community_robot_lib//giteeclient:go_default_library",
"@com_github_opensourceways_community_robot_lib//logrusutil:go_default_library",
"@com_github_opensourceways_community_robot_lib//options:go_default_library",
"@com_github_opensourceways_community_robot_lib//secret:go_default_library",
"@com_github_opensourceways_go_gitee//gitee:go_default_library",
"@com_github_panjf2000_ants_v2//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@io_k8s_apimachinery//pkg/util/sets:go_default_library",
],
)
go_binary(
name = "robot-gitee-scavenger",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)