mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
chore: start CI/CD
This commit is contained in:
parent
a98ac909c7
commit
dfbcd0c6e6
4 changed files with 66 additions and 27 deletions
|
@ -1,5 +1,6 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
||||
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
||||
|
||||
go_library(
|
||||
name = "discord-bot_lib",
|
||||
|
@ -30,3 +31,21 @@ go_image(
|
|||
embed = [":discord-bot_lib"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "+publish",
|
||||
format = "Docker",
|
||||
image = ":image",
|
||||
registry = "docker.io",
|
||||
repository = "roleypoly/discord-bot",
|
||||
tag = "dev2",
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "+publish-2",
|
||||
format = "Docker",
|
||||
image = ":image",
|
||||
registry = "docker.io",
|
||||
repository = "roleypoly/discord-bot",
|
||||
tag = "dev",
|
||||
)
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "gripkit",
|
||||
srcs = [
|
||||
"gripkit.go",
|
||||
"options.go",
|
||||
],
|
||||
importpath = "github.com/roleypoly/roleypoly/src/gripkit",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_improbable_eng_grpc_web//go/grpcweb",
|
||||
"@io_k8s_klog//:klog",
|
||||
"@org_golang_google_grpc//:go_default_library",
|
||||
],
|
||||
)
|
||||
# go_library(
|
||||
# name = "gripkit",
|
||||
# srcs = [
|
||||
# "gripkit.go",
|
||||
# "options.go",
|
||||
# ],
|
||||
# importpath = "github.com/roleypoly/roleypoly/src/gripkit",
|
||||
# visibility = ["//visibility:public"],
|
||||
# deps = [
|
||||
# "@com_github_improbable_eng_grpc_web//go/grpcweb",
|
||||
# "@io_k8s_klog//:klog",
|
||||
# "@org_golang_google_grpc//:go_default_library",
|
||||
# ],
|
||||
# )
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
ts_library(
|
||||
name = "jstest",
|
||||
srcs = glob(["*.ts"]),
|
||||
deps = [
|
||||
# "//path/to/other:library"
|
||||
],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue