Skip to content

Commit

Permalink
debs/
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Jan 14, 2025
1 parent 81a685a commit b852518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions debs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ PUBLISH_ENV = {
"APTLY_BIN": "$(location @aptly)",
"MAINTAINER_KEY": "$(location //:envoy-maintainers-public.key)",
"APTLY_CONF": "$(location //:aptly-config)",
"DEBS": "$(location :debs-publish)",
"DEBS": "$(locations :debs-publish)",
"DEBS_ROOT": "$${APT_ROOT}/repository",
"SIGNING_TOKEN": "$(location :signing-token)",
}
Expand Down Expand Up @@ -180,8 +180,7 @@ HTML_BUILD_CMD = """
export APTLY_BIN="$(location @aptly)"
export MAINTAINER_KEY="$(location //:envoy-maintainers-public.key)"
export APTLY_CONF="$(location //:aptly-config)"
DEBS="$(dirname $(dirname $(echo $(locations :debs-publish) | cut -d' ' -f1)))"
export DEBS
export DEBS="$(locations :debs-publish)"
export DEBS_ROOT="$${APT_ROOT}/repository"
export SIGNING_TOKEN="$(location :signing-token)"
ls -alh /opt/build
Expand Down
4 changes: 4 additions & 0 deletions debs/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if [[ -z "$SIGNING_KEY" ]]; then
exit 1
fi

if [[ -n "$DEBS" ]]; then
DEBS="$(dirname $(dirname $(echo ${DEBS} | cut -d' ' -f1)))"
fi


_aptly () {
"${APTLY[@]}" -- "${@}"
Expand Down

0 comments on commit b852518

Please sign in to comment.