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 \
|
docker run --rm --privileged \
|
||||||
-v "$(pwd)":/output \
|
-v "$(pwd)":/output \
|
||||||
fithwum/debian-$version-base \
|
fithwum/debian-$version-base \
|
||||||
bash -c "
|
bash -euxo pipefail -c "
|
||||||
set -euo pipefail
|
TARBALL=\"/output/debian-${version}.tar.bz2\"
|
||||||
mkdir -p /output/$version
|
TARGET_DIR=\"/output/${version}\"
|
||||||
bash base-image-script/debian-${version}_pt1.sh
|
mkdir -p \"\$TARGET_DIR\"
|
||||||
|
|
||||||
TAR=\$(find /output -maxdepth 1 -name 'debian-${version}.tar.bz2' 2>/dev/null | head -n 1)
|
if [ ! -f \"\$TARBALL\" ]; then
|
||||||
if [[ -f \"\$TAR\" ]]; then
|
echo '[ERROR] Tarball not found at expected path: '\$TARBALL
|
||||||
echo \"[INFO] Moving tarball to /output/$version/\"
|
ls -lh /output || true
|
||||||
mv \"\$TAR\" \"/output/$version/\"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f \"/output/$version/debian-${version}.tar.bz2\" ]]; then
|
|
||||||
echo \"[ERROR] Expected tarball not found for $version!\"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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:"
|
echo "[DEBUG] After run: host dir contents:"
|
||||||
ls -lh "./$version" || echo "[WARN] $version directory missing!"
|
ls -lh "./$version" || echo "[WARN] $version directory missing!"
|
||||||
|
|||||||
Reference in New Issue
Block a user