fix package key check during CI build
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Failing after 27m11s
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Failing after 27m11s
This commit is contained in:
@@ -31,6 +31,15 @@ export PACKAGER="${packager}"
|
||||
export REPODEST="${repo_root}/packages"
|
||||
export SRCDEST="${repo_root}/.cache/apk-distfiles"
|
||||
|
||||
install_repo_keys() {
|
||||
local key
|
||||
shopt -s nullglob
|
||||
for key in "${REPODEST}/${repo_name}"/*/*.rsa.pub; do
|
||||
doas cp "${key}" /etc/apk/keys/
|
||||
done
|
||||
shopt -u nullglob
|
||||
}
|
||||
|
||||
git config --global --add safe.directory "${repo_root}"
|
||||
mkdir -p "${repo_root}/.cache/abuild" "${SRCDEST}" "${REPODEST}" "${HOME}/.abuild"
|
||||
|
||||
@@ -44,6 +53,7 @@ if ! compgen -G "${HOME}/.abuild/*.rsa" > /dev/null; then
|
||||
fi
|
||||
|
||||
doas cp "${HOME}"/.abuild/*.rsa.pub /etc/apk/keys/
|
||||
install_repo_keys
|
||||
doas apk update
|
||||
|
||||
while IFS= read -r package_dir; do
|
||||
|
||||
Reference in New Issue
Block a user