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
|
|
|
|
- ls ~/.ssh/
|
|
|
|
- echo $KEY > ~/.ssh/id_rsa.pub
|
2021-11-11 04:05:16 +00:00
|
|
|
- ssh kumoly@kumoly.io -p 2222 ls
|