Fix git ssh commands
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-08-15 01:03:34 +02:00
parent cac3a5d721
commit cc2f7a22cd
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -74,6 +74,12 @@ steps:
- name: cache
path: /home/gradle/.gradle
commands:
- mkdir $HOME/.ssh
- echo $SSH_KEY > $HOME/.ssh/id_ed25519
- chmod 600 $HOME/.ssh/id_ed25519
- touch $HOME/.ssh/known_hosts
- chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null
- GIT_SSH=/drone/src/module-deploy/scripts/ssh-git-command.sh ./gradlew final jib
volumes:
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
ssh -i $SSH_KEY $@
ssh $@