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:19:39 +00:00
|
|
|
- echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
|
2021-11-11 04:20:23 +00:00
|
|
|
- mkdir -p ~/.ssh
|
2021-11-11 04:35:14 +00:00
|
|
|
- echo "$KEY" > ~/.ssh/id_rsa
|
2021-11-11 04:24:45 +00:00
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
2021-11-11 04:20:52 +00:00
|
|
|
- ssh kumoly@kumoly.io -p 2222 ls
|