From c0a36c4afb08f849cf6b2c4dae76eda478d7c323 Mon Sep 17 00:00:00 2001 From: fithwum Date: Mon, 7 Jul 2025 17:14:14 -0700 Subject: [PATCH] gfdhgdfh --- .gitea/workflows/base-build.yml | 52 +++++---------------------------- 1 file changed, 7 insertions(+), 45 deletions(-) diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index d180010..5f1c8e0 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -29,59 +29,21 @@ jobs: - name: Build all Debian rootfs versions sequentially run: | versions=($VERSIONS) - echo "[DEBUG] Build starting in $(pwd)" for version in "${versions[@]}"; do 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 \ - -v "$(pwd)":/output \ + -v "$(pwd)/$version":/output \ fithwum/debian-$version-base \ - bash -euxo pipefail -c " - TARBALL=\"/output/debian-${version}.tar.bz2\" - TARGET_DIR=\"/output/${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" + 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: 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 run: | echo "[INFO] Looking for tarballs in workspace..."