This commit is contained in:
@@ -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,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
ssh -i $SSH_KEY $@
|
||||
ssh $@
|
||||
|
||||
Reference in New Issue
Block a user