mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
chore: sync
This commit is contained in:
parent
6c30d27d28
commit
01d3e6d6cb
5 changed files with 120 additions and 8 deletions
32
src/discord-auth/BUILD.bazel
Normal file
32
src/discord-auth/BUILD.bazel
Normal file
|
@ -0,0 +1,32 @@
|
|||
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-auth_lib",
|
||||
srcs = ["discord-auth.go"],
|
||||
importpath = "github.com/roleypoly/roleypoly/src/discord-auth",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = ["@org_uber_go_fx//:fx"],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
name = "discord-auth",
|
||||
embed = [":discord-auth_lib"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
embed = [":discord-auth_lib"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "+publish",
|
||||
format = "Docker",
|
||||
image = ":image",
|
||||
registry = "docker.pkg.github.com",
|
||||
repository = "roleypoly/roleypoly/discord-auth",
|
||||
tag = "{STABLE_GIT_BRANCH}",
|
||||
)
|
11
src/discord-auth/discord-auth.go
Normal file
11
src/discord-auth/discord-auth.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
import "go.uber.org/fx"
|
||||
|
||||
func main() {
|
||||
app := fx.New(
|
||||
// fx.Invoke(StartDiscordAuthService),
|
||||
)
|
||||
|
||||
app.Run()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue