fdghfgh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 4m3s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped

This commit is contained in:
2025-07-07 21:06:15 -07:00
parent 3ca06e6bd8
commit 6276e49498
2 changed files with 22 additions and 20 deletions

View File

@@ -54,21 +54,25 @@ jobs:
- name: Debug output folder - name: Debug output folder
run: | run: |
echo "Archives present:" echo "Archives present in output:"
ls -lh ./debian-*.tar.bz2 || true find ./output -name '*.tar.bz2' -exec ls -lh {} \;
ls -lh rootfs-*.tar.bz2 || true
- name: List output archives - name: List output archives
run: | run: |
echo "[INFO] Looking for tarballs in output/..." echo "[INFO] Final archive list:"
find output -name '*.tar.bz2' -exec ls -lh {} \; find ./output -type f -name 'debian-*.tar.bz2'
# - name: Debug workspace contents - name: Validate that archives exist for each version
# run: | run: |
# echo "Current directory:" for version in $VERSIONS; do
# pwd path="output/$version/debian-$version.tar.bz2"
# echo "Contents:" if [[ ! -f "$path" ]]; then
# ls -R echo "[ERROR] Missing archive: $path"
exit 1
else
echo "[OK] Found: $path"
fi
done
push-archives-to-repo: push-archives-to-repo:
needs: build-rootfs-archives needs: build-rootfs-archives
@@ -88,23 +92,21 @@ jobs:
- name: Copy new archives to upload-repo - name: Copy new archives to upload-repo
run: | run: |
found=$(find output -name '*.tar.bz2') found=$(find ./output -type f -name 'debian-*.tar.bz2')
if [ -z "$found" ]; then if [ -z "$found" ]; then
echo "[WARNING] No .tar.bz2 archive found!" echo "[WARNING] No .tar.bz2 archive found in output/!"
exit 1 exit 1
fi fi
for filepath in $found; do for filepath in $found; do
filename=$(basename "$filepath") version_dir=$(basename "$(dirname "$filepath")")
version=$(echo "$filename" | sed -E 's/^debian-([a-z]+)\.tar\.bz2$/\1/') mkdir -p "upload-repo/$version_dir"
mkdir -p upload-repo/"$version" cp "$filepath" "upload-repo/$version_dir/"
cp "$filepath" upload-repo/"$version"/
done done
- name: Calculate and store sha256sums in upload-repo - name: Calculate and store sha256sums in upload-repo
run: | run: |
cd upload-repo cd upload-repo
echo "[INFO] Calculating sha256sums..."
rm -f sha256sums.txt rm -f sha256sums.txt
for tarball in */debian-*.tar.bz2; do for tarball in */debian-*.tar.bz2; do
echo "[INFO] Processing: $tarball" echo "[INFO] Processing: $tarball"
@@ -252,7 +254,7 @@ jobs:
size_human=$(human_size "$size_bytes") size_human=$(human_size "$size_bytes")
# Load SHA256 from file if available # Load SHA256 from file if available
SHA256=$(grep "/$version/rootfs-$version.tar.bz2" ../sha256sums.txt | awk '{print $1}') SHA256=$(grep "$version/debian-$version.tar.bz2" ../sha256sums.txt | awk '{print $1}')
if [[ -z "$SHA256" ]]; then if [[ -z "$SHA256" ]]; then
SHA256="unknown" SHA256="unknown"
fi fi

View File

@@ -42,7 +42,7 @@ echo "[INFO] Rootfs size:"
du -sh "$ROOTFS_DIR" du -sh "$ROOTFS_DIR"
echo "[INFO] Creating compressed base image..." echo "[INFO] Creating compressed base image..."
mkdir -p "/$OUTPUT_DIR/$DEBIAN_RELEASE" mkdir -p "$OUTPUT_DIR/$DEBIAN_RELEASE"
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" . tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
ls -lh "$TARBALL" ls -lh "$TARBALL"