When publishing files, distbot attempts to publish all files from a
context, including non-deb files such as logs.
This commit modifies distbot so that it attempts to publish only
debian packages.
return 1
fi
- readarray -t artifacts < <(foundry_context_get_files "$context")
+ readarray -t artifacts < <(foundry_context_get_files "$context" "signed")
for artifact in "${artifacts[@]}"; do
local artifact_name
+ local extension
artifact_name="${artifact##*/}"
+ extension="${artifact_name##*.}"
+
+ if [[ "$extension" != "deb" ]]; then
+ log_debug "Skipping non-deb artifact $artifact_name"
+ continue
+ fi
if process_new_package "$context" "$artifact" "$repo" "$codename"; then
distributed+=("$artifact_name")