fdghfdgh
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 7s
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
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-rootfs-archives (push) Failing after 7s
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:
@@ -39,21 +39,22 @@ jobs:
|
||||
docker run --rm --privileged \
|
||||
-v "$(pwd)":/output \
|
||||
fithwum/debian-$version-base \
|
||||
bash -c "
|
||||
set -euo pipefail
|
||||
mkdir -p /output/$version
|
||||
bash base-image-script/debian-${version}_pt1.sh
|
||||
bash -euxo pipefail -c "
|
||||
TARBALL=\"/output/debian-${version}.tar.bz2\"
|
||||
TARGET_DIR=\"/output/${version}\"
|
||||
mkdir -p \"\$TARGET_DIR\"
|
||||
|
||||
TAR=\$(find /output -maxdepth 1 -name 'debian-${version}.tar.bz2' 2>/dev/null | head -n 1)
|
||||
if [[ -f \"\$TAR\" ]]; then
|
||||
echo \"[INFO] Moving tarball to /output/$version/\"
|
||||
mv \"\$TAR\" \"/output/$version/\"
|
||||
fi
|
||||
|
||||
if [[ ! -f \"/output/$version/debian-${version}.tar.bz2\" ]]; then
|
||||
echo \"[ERROR] Expected tarball not found for $version!\"
|
||||
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!"
|
||||
|
||||
Reference in New Issue
Block a user