test-drone-ssh/.drone.yml

13 lines
280 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
- echo $KEY > ~/.ssh/id_rsa.pub
- ssh kumoly@kumoly.io -i /id_rsa.pub -p 2222 ls