File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 91
91
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
92
92
chmod 600 ~/.ssh/id_ed25519
93
93
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
94
108
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 }}'"
95
109
env :
96
110
SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments