This commit is contained in:
41
.drone.yml
41
.drone.yml
@@ -1,29 +1,18 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: docker
|
||||||
name: Tutorial
|
name: deploy-to-remote
|
||||||
|
|
||||||
server:
|
|
||||||
host: mephis.to
|
|
||||||
user: mephisto
|
|
||||||
ssh_key:
|
|
||||||
from_secret: rsa_key
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: false
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: copy-file-over-ssh
|
||||||
environment:
|
image: appleboy/drone-ssh
|
||||||
KEY:
|
settings:
|
||||||
from_secret: ssh_key
|
host: mephis.to
|
||||||
commands:
|
username: mephisto
|
||||||
- echo "$KEY" > $HOME/.ssh/id_git_rsa
|
# You can use either password or ssh_key (see notes below)
|
||||||
- git clone ssh://git@git.netz.org:222/mephisto/clubbing-content.git /home/mephisto/cc/content
|
ssh_key:
|
||||||
- git checkout $DRONE_COMMIT
|
from_secret: ssh-key
|
||||||
|
port: 22
|
||||||
- name: Show Environment
|
script:
|
||||||
commands:
|
# - mkdir -p ~/destination/directory/
|
||||||
- whoami
|
- echo "Copying file to remote..."
|
||||||
- pwd
|
- scp -r * mephisto@mephis.to:~/cc/content
|
||||||
- hostname
|
|
||||||
Reference in New Issue
Block a user