gfdhgdfh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / push-archives-to-repo (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-docker-images (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been cancelled
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been cancelled
This commit is contained in:
@@ -29,59 +29,21 @@ jobs:
|
|||||||
- name: Build all Debian rootfs versions sequentially
|
- name: Build all Debian rootfs versions sequentially
|
||||||
run: |
|
run: |
|
||||||
versions=($VERSIONS)
|
versions=($VERSIONS)
|
||||||
echo "[DEBUG] Build starting in $(pwd)"
|
|
||||||
|
|
||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
echo "[INFO] Building Debian $version rootfs..."
|
echo "[INFO] Building Debian $version rootfs..."
|
||||||
docker build --build-arg VERSION="$version" -t fithwum/debian-$version-base .
|
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
||||||
|
|
||||||
echo "[INFO] Running container for $version"
|
mkdir -p "./$version"
|
||||||
|
|
||||||
docker run --rm --privileged \
|
docker run --rm --privileged \
|
||||||
-v "$(pwd)":/output \
|
-v "$(pwd)/$version":/output \
|
||||||
fithwum/debian-$version-base \
|
fithwum/debian-$version-base \
|
||||||
bash -euxo pipefail -c "
|
bash base-image-script/debian-${version}_pt1.sh
|
||||||
TARBALL=\"/output/debian-${version}.tar.bz2\"
|
echo "[DEBUG] Checking host output dir: ./$version"
|
||||||
TARGET_DIR=\"/output/${version}\"
|
ls -lh "./$version" || echo "[WARN] No folder or files in ./$version"
|
||||||
mkdir -p \"\$TARGET_DIR\"
|
|
||||||
|
|
||||||
if [ ! -f \"\$TARBALL\" ]; then
|
|
||||||
echo '[ERROR] Tarball not found at expected path: '\$TARBALL
|
|
||||||
ls -lh /output || true
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo \"[INFO] Moving \$TARBALL to \$TARGET_DIR/\"
|
|
||||||
mv \"\$TARBALL\" \"\$TARGET_DIR/\" || { echo '[ERROR] Move failed'; exit 1; }
|
|
||||||
|
|
||||||
echo \"[INFO] Moved tarball to \$TARGET_DIR/\"
|
|
||||||
ls -lh \"\$TARGET_DIR/\"
|
|
||||||
"
|
|
||||||
echo "[DEBUG] After run: host dir contents:"
|
|
||||||
ls -lh "./$version" || echo "[WARN] $version directory missing!"
|
|
||||||
echo "[DEBUG] After container, listing host $version folder:"
|
|
||||||
ls -lh "$version"
|
|
||||||
echo "[INFO] Finished $version"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Print host working directory & contents
|
|
||||||
run: |
|
|
||||||
echo "Working dir: $(pwd)"
|
|
||||||
ls -R .
|
|
||||||
|
|
||||||
# for version in "${versions[@]}"; do
|
|
||||||
# echo "[INFO] Building Debian $version rootfs..."
|
|
||||||
# docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
|
||||||
|
|
||||||
# mkdir -p "./$version"
|
|
||||||
# docker run --rm --privileged \
|
|
||||||
# -v "$(pwd)":/output \
|
|
||||||
# fithwum/debian-$version-base \
|
|
||||||
# bash base-image-script/debian-${version}_pt1.sh
|
|
||||||
|
|
||||||
# echo "[DEBUG] Checking host output dir: ./$version"
|
|
||||||
# ls -lh "./$version" || echo "[WARN] No folder or files in ./$version"
|
|
||||||
# done
|
|
||||||
|
|
||||||
- name: List output archives
|
- name: List output archives
|
||||||
run: |
|
run: |
|
||||||
echo "[INFO] Looking for tarballs in workspace..."
|
echo "[INFO] Looking for tarballs in workspace..."
|
||||||
|
|||||||
Reference in New Issue
Block a user