Fix Docker mount issue by using docker cp instead
All checks were successful
Build bootupd with systemd-boot / build (push) Successful in 1m24s
All checks were successful
Build bootupd with systemd-boot / build (push) Successful in 1m24s
- Change from --rm to -d to keep container running - Use docker cp to copy .deb file from container to host - This bypasses the Docker mount issue that was preventing file transfer - Remove separate copy step since it's now integrated - The .deb file should now be available on host filesystem
This commit is contained in:
parent
456b9ee04a
commit
a8e1bf111c
1 changed files with 16 additions and 19 deletions
|
|
@ -71,7 +71,9 @@ jobs:
|
||||||
echo "Current directory before Docker run: $(pwd)"
|
echo "Current directory before Docker run: $(pwd)"
|
||||||
echo "Files in current directory before Docker run:"
|
echo "Files in current directory before Docker run:"
|
||||||
ls -la
|
ls -la
|
||||||
docker run --rm -v $(pwd):/workspace bootupd-sdboot:latest bash -c "
|
|
||||||
|
# Run Docker container and capture container ID
|
||||||
|
CONTAINER_ID=$(docker run -d -v $(pwd):/workspace bootupd-sdboot:latest bash -c "
|
||||||
# Setup apt-cacher-ng inside container if available
|
# Setup apt-cacher-ng inside container if available
|
||||||
if timeout 5 curl -s --connect-timeout 3 \
|
if timeout 5 curl -s --connect-timeout 3 \
|
||||||
http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
||||||
|
|
@ -124,28 +126,23 @@ jobs:
|
||||||
ls -la /workspace/ && \
|
ls -la /workspace/ && \
|
||||||
echo \"Looking for .deb files in /workspace:\" && \
|
echo \"Looking for .deb files in /workspace:\" && \
|
||||||
ls -la /workspace/*.deb 2>/dev/null || echo \"No .deb files found in /workspace\"
|
ls -la /workspace/*.deb 2>/dev/null || echo \"No .deb files found in /workspace\"
|
||||||
"
|
")
|
||||||
|
|
||||||
|
# Wait for container to complete
|
||||||
|
echo "Waiting for container to complete..."
|
||||||
|
docker wait $CONTAINER_ID
|
||||||
|
|
||||||
|
# Copy .deb file from container to host
|
||||||
|
echo "Copying .deb file from container to host..."
|
||||||
|
docker cp $CONTAINER_ID:/workspace/bootupd_0.1.0++_amd64.deb .
|
||||||
|
|
||||||
|
# Clean up container
|
||||||
|
docker rm $CONTAINER_ID
|
||||||
|
|
||||||
echo "Current directory after Docker run: $(pwd)"
|
echo "Current directory after Docker run: $(pwd)"
|
||||||
echo "Files in current directory after Docker run:"
|
echo "Files in current directory after Docker run:"
|
||||||
ls -la
|
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
|
- name: Upload to Forgejo Debian Registry
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/bootupd-sdboot
|
cd /tmp/bootupd-sdboot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue