Skip to content

Commit 49086f2

Browse files
committed
fix: debug ssh connection to sill
1 parent 0b3f684 commit 49086f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@ jobs:
9191
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
9292
chmod 600 ~/.ssh/id_ed25519
9393
ssh-keyscan code.gouv.fr >> ~/.ssh/known_hosts
94+
95+
# Debug: Check key format
96+
echo "SSH key first line:"
97+
head -1 ~/.ssh/id_ed25519
98+
echo "SSH key last line:"
99+
tail -1 ~/.ssh/id_ed25519
100+
echo "SSH key line count:"
101+
wc -l ~/.ssh/id_ed25519
102+
103+
# Test SSH connection
104+
echo "Testing SSH connection..."
105+
ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 [email protected] "echo 'SSH connection successful'"
106+
107+
# Run the actual command
94108
ssh -o StrictHostKeyChecking=no [email protected] "bash -c 'eval \"\$(ssh-agent -s)\" && ssh-add ~/.ssh/sill-data && ./update-sill-preprod.sh v${{ env.TO_VERSION }}'"
95109
env:
96110
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)