Skip to content

Commit 4c8bc63

Browse files
committed
Add bazel build and release
1 parent 2e245b6 commit 4c8bc63

File tree

128 files changed

+2755
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2755
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
config.yaml
22
git-sync
3+
/release

BUILD.bazel

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2+
3+
go_binary(
4+
name = "git-sync",
5+
srcs = [
6+
"main.go",
7+
"schema.go",
8+
],
9+
pure = "on",
10+
visibility = ["//visibility:public"],
11+
deps = [
12+
"@com_github_google_go_github//github:go_default_library",
13+
"@com_github_prometheus_client_golang//prometheus/promhttp:go_default_library",
14+
"@com_github_santhosh_tekuri_jsonschema//:go_default_library",
15+
"@com_github_sirupsen_logrus//:go_default_library",
16+
"@in_gopkg_src_d_go_git_v4//:go_default_library",
17+
"@in_gopkg_src_d_go_git_v4//config:go_default_library",
18+
"@in_gopkg_src_d_go_git_v4//plumbing/format/config:go_default_library",
19+
"@in_gopkg_src_d_go_git_v4//plumbing/transport:go_default_library",
20+
"@in_gopkg_src_d_go_git_v4//plumbing/transport/http:go_default_library",
21+
"@in_gopkg_src_d_go_git_v4//plumbing/transport/ssh:go_default_library",
22+
"@in_gopkg_yaml_v2//:go_default_library",
23+
"@org_golang_x_crypto//ssh:go_default_library",
24+
"@org_golang_x_oauth2//:go_default_library",
25+
],
26+
x_defs = {
27+
"main.version": "{STABLE_GIT_TAG}",
28+
"main.commit": "{STABLE_GIT_COMMIT}",
29+
},
30+
)
31+
32+
load("@bazel_gazelle//:def.bzl", "gazelle")
33+
34+
gazelle(name = "gazelle")

0 commit comments

Comments
 (0)