dfgdfsg
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 2m11s
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 20:50:17 -07:00
parent 6580953c90
commit 4b59974c02

View File

@@ -25,7 +25,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Prepare output directory
run: mkdir -p output
- name: Clean workspace tarballs before build
run: |
echo "[INFO] Cleaning old tarballs..."
@@ -37,8 +40,6 @@ jobs:
run: |
versions=($VERSIONS)
mkdir -p output
for version in "${versions[@]}"; do
echo "[INFO] Building $version..."
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
@@ -47,7 +48,8 @@ jobs:
-v "$(pwd)/output":/output \
-e VERSION="$version" \
fithwum/debian-$version-base \
/scripts/bootstrap-rootfs.sh
bash -eux /scripts/bootstrap-rootfs.sh "$version"
# /scripts/bootstrap-rootfs.sh
done
- name: Debug output folder
@@ -58,9 +60,8 @@ jobs:
- name: List output archives
run: |
echo "[INFO] Final archive list:"
find . -type f -path './*/debian-*.tar.bz2' -exec ls -lh {} \;
echo "[INFO] Looking for tarballs in output/..."
find output -name '*.tar.bz2' -exec ls -lh {} \;
# - name: Debug workspace contents
# run: |
@@ -87,16 +88,17 @@ jobs:
- name: Copy new archives to upload-repo
run: |
found=$(find . -type f -path './*/debian-*.tar.bz2')
found=$(find output -name '*.tar.bz2')
if [ -z "$found" ]; then
echo "[WARNING] No .tar.bz2 archive found!"
exit 1
fi
for filepath in $found; do
version_dir=$(dirname "$filepath")
mkdir -p upload-repo/"$version_dir"
cp "$filepath" upload-repo/"$version_dir"/
filename=$(basename "$filepath")
version=$(echo "$filename" | sed -E 's/^debian-([a-z]+)\.tar\.bz2$/\1/')
mkdir -p upload-repo/"$version"
cp "$filepath" upload-repo/"$version"/
done
- name: Calculate and store sha256sums in upload-repo