From 456b9ee04a963b33beca63354557b96c24cc2e25 Mon Sep 17 00:00:00 2001 From: robojerk Date: Fri, 5 Sep 2025 10:48:15 -0700 Subject: [PATCH] Add debugging for Docker mount and file transfer - Add debugging before and after Docker run to see file state - Add explicit step to verify .deb file is available on host - This will help identify if Docker mount is working correctly - The .deb file should be available due to -v mount but let's verify --- .forgejo/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index f82c27c..8483b1f 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -68,6 +68,9 @@ jobs: - name: Build bootupd inside container run: | cd /tmp/bootupd-sdboot + echo "Current directory before Docker run: $(pwd)" + echo "Files in current directory before Docker run:" + ls -la docker run --rm -v $(pwd):/workspace bootupd-sdboot:latest bash -c " # Setup apt-cacher-ng inside container if available if timeout 5 curl -s --connect-timeout 3 \ @@ -122,7 +125,26 @@ jobs: echo \"Looking for .deb files in /workspace:\" && \ ls -la /workspace/*.deb 2>/dev/null || echo \"No .deb files found in /workspace\" " + echo "Current directory after Docker run: $(pwd)" + echo "Files in current directory after Docker run:" + ls -la + - name: Copy Debian package from Docker container + run: | + cd /tmp/bootupd-sdboot + echo "Copying .deb file from Docker container..." + + # The .deb file should be in the current directory due to Docker mount + # But let's verify and copy it explicitly if needed + if [ -f "bootupd_0.1.0++_amd64.deb" ]; then + echo "✅ .deb file found in current directory" + ls -la bootupd_0.1.0++_amd64.deb + else + echo "❌ .deb file not found in current directory" + echo "Files in current directory:" + ls -la + exit 1 + fi - name: Upload to Forgejo Debian Registry run: |