test-drone-ssh/.drone.yml

14 lines
287 B
YAML

kind: pipeline
name: default
steps:
- name: ssh
image: golang:1.17.2
environment:
KEY:
from_secret: key
commands:
- echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
- mkdir -p ~/.ssh
- echo $KEY > ~/.ssh/id_rsa.pub
- ssh kumoly@kumoly.io -p 2222 ls