22 lines
450 B
YAML
22 lines
450 B
YAML
steps:
|
|
|
|
- name: prepare
|
|
image: alpine:latest
|
|
commands:
|
|
- ls -la
|
|
- echo "Current dir: $(pwd)"
|
|
- echo "Source dir: $CI_WORKSPACE"
|
|
- find . -type f | head -n 20
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: 192.168.0.109
|
|
user: deployer
|
|
key:
|
|
from_secret: SSH_PRIVATE_KEY
|
|
script:
|
|
- rsync -av $CI_WORKSPACE/ /opt/testbot-git/
|
|
when:
|
|
event: push
|
|
branch: main
|