Skip to content

Commit

Permalink
WIP: Package deb for Debian/Ubuntu amd64 systems
Browse files Browse the repository at this point in the history
  • Loading branch information
minor-fixes committed Jul 29, 2024
1 parent 32cb322 commit 67322f8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module(

bazel_dep(name = "gazelle", version = "0.37.0")
bazel_dep(name = "rules_go", version = "0.48.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")

go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.22.5")
Expand Down
7 changes: 5 additions & 2 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions cmd/engflow_auth/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@rules_go//go:def.bzl", "go_binary", "go_cross_binary", "go_library", "go_test")
load("@rules_pkg//:deb.bzl", "pkg_deb")
load("//infra:visibility.bzl", "RELEASE_ARTIFACT")

go_library(
Expand Down Expand Up @@ -57,3 +58,17 @@ go_cross_binary(
target = ":engflow_auth",
visibility = RELEASE_ARTIFACT,
)

pkg_tar(
name = "engflow_auth_linux_x64_tar",
srcs = [
":engflow_auth_linux_x64",
],
package_dir = "/usr/local/bin",
)

pkg_deb(
name = "engflow_auth_deb",
out = "engflow_auth.deb",
data = "",
)

0 comments on commit 67322f8

Please sign in to comment.