This commit is contained in:
41
.drone.yml
41
.drone.yml
@@ -1,29 +1,18 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: Tutorial
|
||||
|
||||
server:
|
||||
host: mephis.to
|
||||
user: mephisto
|
||||
ssh_key:
|
||||
from_secret: rsa_key
|
||||
|
||||
clone:
|
||||
disable: false
|
||||
type: docker
|
||||
name: deploy-to-remote
|
||||
|
||||
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
|
||||
- name: copy-file-over-ssh
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: mephis.to
|
||||
username: mephisto
|
||||
# You can use either password or ssh_key (see notes below)
|
||||
ssh_key:
|
||||
from_secret: ssh-key
|
||||
# port: 22
|
||||
source: *
|
||||
target: /home/mephisto/cc/content
|
||||
known_hosts: |
|
||||
mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa
|
||||
Reference in New Issue
Block a user