'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 1m28s

This commit is contained in:
Your Name 2025-06-01 10:12:02 +12:00
parent 4defaf8d97
commit 595d97efed
2 changed files with 26 additions and 4 deletions

View File

@ -22,9 +22,18 @@ jobs:
- name: Build
run: |
./dropshell-build/build.sh
- name: Debug Docker Environment
run: |
echo "PWD: $(pwd)"
echo "GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-not set}"
echo "Runner workspace: ${{ github.workspace }}"
echo "Docker info:"
docker info | grep -E "(Docker Root Dir|Storage Driver)" || true
echo "Mount info:"
mount | grep -E "(overlay|workspace)" || true
- name: Test
run: |
./dropshell-build/test.sh
HOST_WORKSPACE_PATH="${{ github.workspace }}" ./dropshell-build/test.sh
- name: Publish
run: |
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ./dropshell-build/publish.sh

View File

@ -213,13 +213,26 @@ function buildspawn() {
fi
echo "Using Docker Buildchain."
TAG="latest"
if [ -n "$DROPSHELL_BUILD_TAG" ]; then
TAG=":$DROPSHELL_BUILD_TAG"
if [ -n "${DROPSHELL_BUILD_TAG-}" ]; then
TAG="$DROPSHELL_BUILD_TAG"
fi
echo "Using Docker Buildchain with tag: $TAG"
# Handle Docker-in-Docker path mapping for Gitea Actions.
MOUNT_DIR="$BUILD_DIR"
if [ -n "${HOST_WORKSPACE_PATH-}" ]; then
# Convert container path to host path
# Gitea typically mounts workspace at /workspace in the container
# Replace /workspace with the actual host path
MOUNT_DIR=$(echo "$BUILD_DIR" | sed "s|^/workspace|$HOST_WORKSPACE_PATH|")
if [ "$MOUNT_DIR" != "$BUILD_DIR" ]; then
echo "Docker-in-Docker: Mapping $BUILD_DIR to $MOUNT_DIR"
fi
fi
docker run --rm \
-u "$(id -u)":"$(id -g)" \
-v "$BUILD_DIR":/app \
-v "$MOUNT_DIR":/app \
"gitea.jde.nz/public/dropshell-build:${TAG}"
else
echo "Using local native buildchain"