test-drone-ssh/.drone.yml

12 lines
213 B
YAML
Raw Normal View History

2021-11-11 04:05:16 +00:00
kind: pipeline
name: default
steps:
- name: ssh
image: golang:1.17.2
2021-11-11 04:09:13 +00:00
environment:
KEY:
from_secret: key
2021-11-11 04:05:16 +00:00
commands:
2021-11-11 04:11:12 +00:00
- echo $KEY > /id_rsa.pub
- ssh kumoly@kumoly.io -i /id_rsa.pub -p 2222 ls