16 lines
345 B
YAML
16 lines
345 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
|
|
- tail -n 5 ~/.ssh/id_rsa
|
|
- chmod 600 ~/.ssh/id_rsa
|
|
- ssh kumoly@kumoly.io -p 2222 ls
|