Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Aug 20, 2024
1 parent be86a20 commit ca656ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .aptly-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rootDir: /opt/build/cache/aptly
FileSystemPublishEndpoints:
public:
rootDir: /opt/build/repo/repository
rootDir: /opt/build/cache/html
linkMethod: symlink
12 changes: 6 additions & 6 deletions debs/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ APTLY_CONF="${APTLY_CONF:-${APTLY_CONF}}"
APTLY=("$APTLY_BIN" -config="${APTLY_CONF}")

DEBS_ROOT="${DEBS_ROOT:-${DEBS_ROOT_DEFAULT}}"

REPOS=(focal jammy bullseye bookworm)
declare -A REPO_PACKAGES
SIGNING_KEY="[email protected]"


_aptly () {
"${APTLY[@]}" -- "${@}"
Expand Down Expand Up @@ -67,18 +67,18 @@ include_debs () {
while read -r file; do
filename="$(basename "$file")"
if [[ "${imported[$filename]}" ]]; then
echo "SKIP: ${filename}"
continue
fi
echo "ADDING ${file}"
_aptly repo include -no-remove-files "$file"
done < <(find "${DEBS_ROOT}" -name "*.changes")
}

publish_repository () {
local repo uid skip snapshot current result key
key=$(gpg --list-secret-keys --keyid-format LONG "[email protected]" | grep 'sec' | awk '{print $2}' | cut -d'/' -f2)

key=$(gpg --list-secret-keys --keyid-format LONG "$SIGNING_KEY" \
| grep 'sec' \
| awk '{print $2}' \
| cut -d'/' -f2)
for repo in "${REPOS[@]}"; do
uid=$(uid_generate)
skip=
Expand Down

0 comments on commit ca656ed

Please sign in to comment.