Optimize Alpine packaging workflow
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Successful in 2h16m43s

This commit is contained in:
Joachim Schlöffel
2026-07-12 10:24:15 +02:00
parent faf7d5e404
commit 89db986774
17 changed files with 125 additions and 166 deletions
+2 -3
View File
@@ -70,7 +70,7 @@ changed_packages() {
mark_all_packages "shared build logic changed"
return
;;
packaging/alpine/local/*/APKBUILD)
packaging/alpine/local/*)
package="${changed_path#packaging/alpine/local/}"
package="${package%%/*}"
selected["${package}"]=1
@@ -231,8 +231,7 @@ sync_cache() {
prune_stale_apks
mkdir -p "${cache_root}"
find "${cache_root}" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
cp -a "${repo_dest}/." "${cache_root}/"
rsync -a --delete "${repo_dest}/" "${cache_root}/"
printf 'Updated Alpine package repository cache at %s\n' "${cache_root}"
}