Making the SSH Keys work.
Some checks failed
Tests / Setup and Checkout (push) Waiting to run
Tests / Backend Setup (Python 3.13 + uv + Environment) (push) Has been cancelled
Tests / Frontend Setup (Node.js 24 + Yarn Berry + Build) (push) Has been cancelled
Tests / Backend Tests (Python 3.13 + uv) (push) Has been cancelled
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Has been cancelled
Some checks failed
Tests / Setup and Checkout (push) Waiting to run
Tests / Backend Setup (Python 3.13 + uv + Environment) (push) Has been cancelled
Tests / Frontend Setup (Node.js 24 + Yarn Berry + Build) (push) Has been cancelled
Tests / Backend Tests (Python 3.13 + uv) (push) Has been cancelled
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Has been cancelled
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -15,7 +15,21 @@ jobs:
|
|||||||
- name: Runner Info
|
- name: Runner Info
|
||||||
run: |
|
run: |
|
||||||
echo "=== Setup Job - $(date) ==="
|
echo "=== Setup Job - $(date) ==="
|
||||||
echo "Runner: ${{ gitea.runner_name || env.GITEA_RUNNER_NAME || github.runner_name || 'unknown' }}"
|
|
||||||
|
# Debug available runner variables
|
||||||
|
echo "=== Runner Detection Debug ==="
|
||||||
|
echo "HOSTNAME: ${HOSTNAME:-not_set}"
|
||||||
|
echo "RUNNER_NAME: ${RUNNER_NAME:-not_set}"
|
||||||
|
echo "GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-not_set}"
|
||||||
|
echo "ACT_RUNNER_NAME: ${ACT_RUNNER_NAME:-not_set}"
|
||||||
|
|
||||||
|
# Try to detect runner name from various sources
|
||||||
|
RUNNER_NAME="${HOSTNAME:-${RUNNER_NAME:-${GITEA_RUNNER_NAME:-${ACT_RUNNER_NAME:-unknown}}}}"
|
||||||
|
echo "Runner: $RUNNER_NAME"
|
||||||
|
|
||||||
|
# Show system info
|
||||||
|
echo "Container ID: $(hostname)"
|
||||||
|
echo "Architecture: $(uname -m)"
|
||||||
|
|
||||||
- name: Checkout code (manual - more reliable than actions/checkout)
|
- name: Checkout code (manual - more reliable than actions/checkout)
|
||||||
# Skip actions/checkout@v4 due to SSL issues with dogar.darkhelm.org
|
# Skip actions/checkout@v4 due to SSL issues with dogar.darkhelm.org
|
||||||
@@ -33,24 +47,10 @@ jobs:
|
|||||||
|
|
||||||
# Debug SSH keys and connectivity
|
# Debug SSH keys and connectivity
|
||||||
echo "=== SSH Debug Info ==="
|
echo "=== SSH Debug Info ==="
|
||||||
echo "Checking ~/.ssh/:"
|
|
||||||
ls -la ~/.ssh/ 2>/dev/null || echo "No ~/.ssh directory"
|
|
||||||
echo "Checking /data/.ssh/:"
|
|
||||||
ls -la /data/.ssh/ 2>/dev/null || echo "No /data/.ssh directory"
|
|
||||||
echo "Current user: $(whoami)"
|
echo "Current user: $(whoami)"
|
||||||
echo "Current HOME: $HOME"
|
echo "Current HOME: $HOME"
|
||||||
|
echo "SSH keys:"
|
||||||
# Copy SSH keys to proper location if they exist
|
ls -la ~/.ssh/ 2>/dev/null || echo "No SSH keys found" ssh-keyscan -p 2222 dogar.darkhelm.org 2>/dev/null || echo "SSH keyscan failed"
|
||||||
if [ -d "/data/.ssh" ]; then
|
|
||||||
echo "Copying SSH keys from /data/.ssh to ~/.ssh"
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
cp -r /data/.ssh/* ~/.ssh/ 2>/dev/null || true
|
|
||||||
chmod 700 ~/.ssh
|
|
||||||
chmod 600 ~/.ssh/* 2>/dev/null || true
|
|
||||||
ls -la ~/.ssh/
|
|
||||||
fi
|
|
||||||
|
|
||||||
ssh-keyscan -p 2222 dogar.darkhelm.org 2>/dev/null || echo "SSH keyscan failed"
|
|
||||||
|
|
||||||
# Try clone methods with better debugging
|
# Try clone methods with better debugging
|
||||||
echo "=== Attempting Clone Methods ==="
|
echo "=== Attempting Clone Methods ==="
|
||||||
@@ -75,8 +75,10 @@ jobs:
|
|||||||
# Method 5: HTTPS with SSL verification disabled (fallback)
|
# Method 5: HTTPS with SSL verification disabled (fallback)
|
||||||
elif echo "Trying HTTPS with SSL disabled..." && git -c http.sslVerify=false clone --depth 1 --branch main https://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git . 2>&1; then
|
elif echo "Trying HTTPS with SSL disabled..." && git -c http.sslVerify=false clone --depth 1 --branch main https://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git . 2>&1; then
|
||||||
echo "✓ External HTTPS clone successful (SSL verification disabled)"
|
echo "✓ External HTTPS clone successful (SSL verification disabled)"
|
||||||
# Method 5: HTTP external
|
# Method 6: HTTP external (try different URL formats)
|
||||||
elif echo "Trying HTTP external..." && git clone --depth 1 --branch main http://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git . 2>&1; then
|
elif echo "Trying HTTP external (port 3000)..." && git clone --depth 1 --branch main http://dogar.darkhelm.org:3000/DarkHelm.org/plex-playlist.git . 2>&1; then
|
||||||
|
echo "✓ External HTTP clone successful (port 3000)"
|
||||||
|
elif echo "Trying HTTP external (no .git)..." && git clone --depth 1 --branch main http://dogar.darkhelm.org/DarkHelm.org/plex-playlist . 2>&1; then
|
||||||
echo "✓ External HTTP clone successful"
|
echo "✓ External HTTP clone successful"
|
||||||
else
|
else
|
||||||
echo "❌ All clone methods failed"
|
echo "❌ All clone methods failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user