|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
--- |
|
|
|
|
kind: pipeline |
|
|
|
|
type: docker |
|
|
|
|
name: Building |
|
|
|
|
name: Deploy Bot |
|
|
|
|
|
|
|
|
|
clone: |
|
|
|
|
disable: true |
|
|
|
@ -17,7 +17,7 @@ steps: |
|
|
|
|
- git checkout $DRONE_COMMIT |
|
|
|
|
- tar -czpf tox.tar.gz * |
|
|
|
|
|
|
|
|
|
- name: prepare |
|
|
|
|
- name: prepare source |
|
|
|
|
image: appleboy/drone-ssh |
|
|
|
|
settings: |
|
|
|
|
host: |
|
|
|
@ -28,9 +28,9 @@ steps: |
|
|
|
|
port: 22 |
|
|
|
|
command_timeout: 2m |
|
|
|
|
script: |
|
|
|
|
- mkdir ~/tox_source |
|
|
|
|
- if [ ! -f /path/to/file ] then mkdir ~/tox_source fi |
|
|
|
|
|
|
|
|
|
- name: scp files |
|
|
|
|
- name: copy files |
|
|
|
|
image: appleboy/drone-scp |
|
|
|
|
settings: |
|
|
|
|
host: |
|
|
|
@ -42,7 +42,7 @@ steps: |
|
|
|
|
target: ~/ |
|
|
|
|
source: tox.tar.gz |
|
|
|
|
|
|
|
|
|
- name: ssh |
|
|
|
|
- name: build |
|
|
|
|
image: appleboy/drone-ssh |
|
|
|
|
settings: |
|
|
|
|
host: |
|
|
|
@ -53,8 +53,8 @@ steps: |
|
|
|
|
port: 22 |
|
|
|
|
command_timeout: 2m |
|
|
|
|
script: |
|
|
|
|
- echo "Hello World" |
|
|
|
|
- mkdir ~/test |
|
|
|
|
- tar -xvzf dtox.tar.gz -C ~/tox_source |
|
|
|
|
- ls -la ~/tox_source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# server: |
|
|
|
|