test-drone-ssh/.drone.yml

16 lines
337 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
- chmod 600 ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa
- ssh kumoly@kumoly.io -p 2222 ls