Attempt to fix ci.yml #1
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 53s
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 53s
This commit is contained in:
parent
a79a4f5797
commit
5c2922853a
1 changed files with 41 additions and 3 deletions
|
|
@ -106,7 +106,23 @@ jobs:
|
||||||
|
|
||||||
# Build packages
|
# Build packages
|
||||||
echo 'Building ostree packages...'
|
echo 'Building ostree packages...'
|
||||||
dpkg-buildpackage -us -uc -b
|
echo 'Current directory before build:'
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
echo 'Running dpkg-buildpackage...'
|
||||||
|
if dpkg-buildpackage -us -uc -b; then
|
||||||
|
echo 'Build successful!'
|
||||||
|
else
|
||||||
|
echo 'Build failed! Checking for any partial packages...'
|
||||||
|
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found after failed build'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 'Build completed. Checking for built packages in /tmp:'
|
||||||
|
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found in /tmp'
|
||||||
|
ls -la /tmp/*.dsc 2>/dev/null || echo 'No .dsc files found in /tmp'
|
||||||
|
ls -la /tmp/*.tar.xz 2>/dev/null || echo 'No .tar.xz files found in /tmp'
|
||||||
|
|
||||||
# Copy built packages to workspace
|
# Copy built packages to workspace
|
||||||
echo 'Copying built packages to workspace...'
|
echo 'Copying built packages to workspace...'
|
||||||
|
|
@ -114,8 +130,14 @@ jobs:
|
||||||
cp /tmp/*.dsc /workspace/ 2>/dev/null || true
|
cp /tmp/*.dsc /workspace/ 2>/dev/null || true
|
||||||
cp /tmp/*.tar.xz /workspace/ 2>/dev/null || true
|
cp /tmp/*.tar.xz /workspace/ 2>/dev/null || true
|
||||||
|
|
||||||
echo 'Built packages:'
|
echo 'Built packages in /workspace:'
|
||||||
ls -la /workspace/*.deb 2>/dev/null || echo 'No .deb files found'
|
ls -la /workspace/*.deb 2>/dev/null || echo 'No .deb files found in /workspace'
|
||||||
|
|
||||||
|
echo 'All files in /workspace:'
|
||||||
|
ls -la /workspace/
|
||||||
|
|
||||||
|
echo 'All files in /tmp:'
|
||||||
|
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found in /tmp'
|
||||||
")
|
")
|
||||||
|
|
||||||
# Wait for container to complete
|
# Wait for container to complete
|
||||||
|
|
@ -124,8 +146,24 @@ jobs:
|
||||||
|
|
||||||
# Copy .deb files from container to host
|
# Copy .deb files from container to host
|
||||||
echo "Copying .deb files from container to host..."
|
echo "Copying .deb files from container to host..."
|
||||||
|
echo "Contents of container /workspace before copy:"
|
||||||
|
docker exec $CONTAINER_ID ls -la /workspace/ 2>/dev/null || echo "Cannot exec into container"
|
||||||
|
|
||||||
docker cp $CONTAINER_ID:/workspace/ .
|
docker cp $CONTAINER_ID:/workspace/ .
|
||||||
|
|
||||||
|
echo "Contents of host directory after copy:"
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
# Also check if files are in the workspace subdirectory
|
||||||
|
if [ -d "workspace" ]; then
|
||||||
|
echo "Found workspace directory, copying files from there..."
|
||||||
|
echo "Contents of workspace directory:"
|
||||||
|
ls -la workspace/
|
||||||
|
cp workspace/*.deb . 2>/dev/null || true
|
||||||
|
cp workspace/*.dsc . 2>/dev/null || true
|
||||||
|
cp workspace/*.tar.xz . 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
# Clean up container
|
# Clean up container
|
||||||
docker rm $CONTAINER_ID
|
docker rm $CONTAINER_ID
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue