From 726b041740bc8d648c09ac59f18d6100cd61407f Mon Sep 17 00:00:00 2001 From: Kpa-clawbot <259247574+Kpa-clawbot@users.noreply.github.com> Date: Mon, 30 Mar 2026 09:15:56 -0700 Subject: [PATCH] fix: staging config.json directory mount and wrong source file Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f64ddda0..71f59f35 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -279,10 +279,12 @@ jobs: # Ensure staging config exists (docker creates a directory if bind mount source missing) STAGING_DATA="${STAGING_DATA_DIR:-$HOME/meshcore-staging-data}" + mkdir -p "$STAGING_DATA" + # Remove directory-masquerading-as-file left by failed docker mount + [ -d "$STAGING_DATA/config.json" ] && rm -rf "$STAGING_DATA/config.json" if [ ! -f "$STAGING_DATA/config.json" ]; then - echo "Staging config missing — copying from repo config.example.json" - mkdir -p "$STAGING_DATA" - cp config.example.json "$STAGING_DATA/config.json" + echo "Staging config missing — copying from repo config.json" + cp config.json "$STAGING_DATA/config.json" 2>/dev/null || cp config.example.json "$STAGING_DATA/config.json" fi docker compose -f "$STAGING_COMPOSE_FILE" -p corescope-staging up -d staging-go