30 lines
509 B
YAML
30 lines
509 B
YAML
---
|
|
kind: pipeline
|
|
type: ssh
|
|
name: Tutorial
|
|
|
|
server:
|
|
host: mephis.to
|
|
user: mephisto
|
|
ssh_key:
|
|
from_secret: rsa_key
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: clone
|
|
environment:
|
|
KEY:
|
|
from_secret: ssh_key
|
|
commands:
|
|
- echo "$KEY" > $HOME/.ssh/id_git_rsa
|
|
- git clone ssh://git@git.netz.org:222/mephisto/clubbing-content.git /home/mephisto/cc/content
|
|
- git checkout $DRONE_COMMIT
|
|
|
|
- name: Show Environment
|
|
commands:
|
|
- whoami
|
|
- pwd
|
|
- hostname
|