Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Aug 18, 2024
1 parent 15e1d74 commit 1c67c39
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
load("@bazel_gazelle//:def.bzl", "gazelle")

exports_files([
".aptly",
"envoy-maintainers-public.key",
])

# gazelle:prefix github.com/aptly-dev/aptly
gazelle(name = "gazelle")

Expand Down
6 changes: 6 additions & 0 deletions build-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ set -e -o pipefail
REPOS=(focal jammy bullseye bookworm)
declare -A REPO_PACKAGES

ls /opt/build/cache/repository | (grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' || echo '') | sort -u > debs/custom-excludes.txt

bazel run --config=debs-ci //debs:publish

exit 0


import_public_key () {
gpg --import envoy-maintainers-public.key
Expand Down
19 changes: 17 additions & 2 deletions debs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ genrule(

sh_binary(
name = "publish",
srcs = ["publish.sh"]
env = {},
srcs = ["publish.sh"],
env = {
"APTLY_BIN": "$(location @aptly)",
"MAINTAINER_KEY": "$(location //:envoy-maintainers-public.key)",
# "DEBS": "$(location :debs)",
"APTLY_CONF": "$(location //:.aptly)",
"APTLY_ROOT_DEFAULT": "/opt/build/cache/aptly",
"DEBS_ROOT_DEFAULT": "/opt/build/cache/repository",
# "UNPACK_BIN": "$(location //tools/tarball:unpack)",
},
data = [
"@aptly",
"//:.aptly",
"//:envoy-maintainers-public.key",
# "//tools/tarball:unpack",
# ":debs"
],
)

0 comments on commit 1c67c39

Please sign in to comment.