This commit is contained in:
Hannaeko 2021-06-07 18:43:00 +02:00
parent 1ac326f0c1
commit 320e100c11

View file

@ -5,10 +5,10 @@ before_script:
#- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' #- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh - mkdir -p /root/.ssh
- chmod 700 ~/.ssh - chmod 700 /root/.ssh
- echo "$SSH_KNOWN_HOSTS" >> /root/.ssh/known_hosts - echo "$SSH_KNOWN_HOSTS" >> /root/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 /root/.ssh/known_hosts
ping: ping:
script: script: