test-drone-ssh/.drone.yml

15 lines
246 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:09:13 +00:00
- pwd
2021-11-11 04:09:57 +00:00
- ls /root
2021-11-11 04:09:13 +00:00
- ls ~/.ssh/
- echo $KEY > ~/.ssh/id_rsa.pub
2021-11-11 04:05:16 +00:00
- ssh kumoly@kumoly.io -p 2222 ls