-
Notifications
You must be signed in to change notification settings - Fork 7
/
BUILD.bazel
45 lines (40 loc) · 1.51 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
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 gitgub.com/opensourceways/robot-gitee-welcome
gazelle(name = "gazelle")
build_plugin_image(
name = "image",
plugin = "robot-gitee-welcome",
)
push_image(
name = "push_image",
images = image_tags(
target = ":image",
),
)
go_library(
name = "go_default_library",
srcs = [
"config.go",
"main.go",
"robot.go",
],
importpath = "gitgub.com/opensourceways/robot-gitee-welcome",
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//robot-gitee-framework:go_default_library",
"@com_github_opensourceways_community_robot_lib//secret:go_default_library",
"@com_github_opensourceways_go_gitee//gitee:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
],
)
go_binary(
name = "robot-gitee-welcome",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)