Updating and testing SSH.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -12,6 +12,34 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Debug SSH Setup
|
||||
run: |
|
||||
echo "=== SSH Debug Information ==="
|
||||
echo "SSH client version:"
|
||||
ssh -V 2>&1 || echo "SSH not available"
|
||||
|
||||
echo "SSH directory contents:"
|
||||
ls -la ~/.ssh/ 2>/dev/null || echo "No ~/.ssh directory"
|
||||
|
||||
echo "Checking for SSH keys in common locations:"
|
||||
find ~ -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in home directory"
|
||||
find /root -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in /root"
|
||||
find /data -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in /data"
|
||||
|
||||
echo "SSH agent status:"
|
||||
ssh-add -l 2>/dev/null || echo "SSH agent not running or no keys loaded"
|
||||
|
||||
echo "Environment variables:"
|
||||
env | grep -E "(SSH|GIT)" || echo "No SSH/GIT environment variables"
|
||||
|
||||
echo "Runner filesystem info:"
|
||||
whoami
|
||||
pwd
|
||||
echo "HOME: $HOME"
|
||||
|
||||
echo "Docker environment check:"
|
||||
cat /proc/1/cgroup 2>/dev/null | head -3 || echo "Not in container or no cgroup info"
|
||||
|
||||
- name: Checkout code
|
||||
run: |
|
||||
echo "=== Repository Checkout ==="
|
||||
@@ -47,7 +75,13 @@ jobs:
|
||||
echo "Available environment variables:"
|
||||
env | grep -i ssh || echo "No SSH-related environment variables"
|
||||
echo "Falling back to HTTP clone..."
|
||||
git clone --depth 1 http://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git .
|
||||
# Try internal network first, then external
|
||||
if git clone --depth 1 http://gitea:3000/DarkHelm.org/plex-playlist.git . 2>/dev/null; then
|
||||
echo "Internal HTTP clone successful"
|
||||
else
|
||||
echo "Internal HTTP failed, trying external..."
|
||||
git clone --depth 1 http://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git .
|
||||
fi
|
||||
fi
|
||||
|
||||
git checkout ${{ github.sha }} 2>/dev/null || echo "Using HEAD commit"
|
||||
@@ -131,6 +165,34 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Debug SSH Setup
|
||||
run: |
|
||||
echo "=== SSH Debug Information ==="
|
||||
echo "SSH client version:"
|
||||
ssh -V 2>&1 || echo "SSH not available"
|
||||
|
||||
echo "SSH directory contents:"
|
||||
ls -la ~/.ssh/ 2>/dev/null || echo "No ~/.ssh directory"
|
||||
|
||||
echo "Checking for SSH keys in common locations:"
|
||||
find ~ -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in home directory"
|
||||
find /root -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in /root"
|
||||
find /data -name "id_*" -type f 2>/dev/null || echo "No SSH keys found in /data"
|
||||
|
||||
echo "SSH agent status:"
|
||||
ssh-add -l 2>/dev/null || echo "SSH agent not running or no keys loaded"
|
||||
|
||||
echo "Environment variables:"
|
||||
env | grep -E "(SSH|GIT)" || echo "No SSH/GIT environment variables"
|
||||
|
||||
echo "Runner filesystem info:"
|
||||
whoami
|
||||
pwd
|
||||
echo "HOME: $HOME"
|
||||
|
||||
echo "Docker environment check:"
|
||||
cat /proc/1/cgroup 2>/dev/null | head -3 || echo "Not in container or no cgroup info"
|
||||
|
||||
- name: Checkout code
|
||||
run: |
|
||||
echo "=== Repository Checkout ==="
|
||||
@@ -166,7 +228,13 @@ jobs:
|
||||
echo "Available environment variables:"
|
||||
env | grep -i ssh || echo "No SSH-related environment variables"
|
||||
echo "Falling back to HTTP clone..."
|
||||
git clone --depth 1 http://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git .
|
||||
# Try internal network first, then external
|
||||
if git clone --depth 1 http://gitea:3000/DarkHelm.org/plex-playlist.git . 2>/dev/null; then
|
||||
echo "Internal HTTP clone successful"
|
||||
else
|
||||
echo "Internal HTTP failed, trying external..."
|
||||
git clone --depth 1 http://dogar.darkhelm.org/DarkHelm.org/plex-playlist.git .
|
||||
fi
|
||||
fi
|
||||
|
||||
git checkout ${{ github.sha }} 2>/dev/null || echo "Using HEAD commit"
|
||||
|
||||
Reference in New Issue
Block a user