re-doing the scp part to test

This commit is contained in:
toby 2018-08-24 21:04:48 +02:00
parent 52658cebe2
commit 90db3310de
1 changed files with 5 additions and 9 deletions

View File

@ -8,12 +8,8 @@ pipeline:
- dpkg-buildpackage --no-sign
- ls -lha ../wit-network-config_*_all.deb
- find / -name *.deb
upload:
image: appleboy/drone-scp
host: cloud-api.v1.cloud.wit.com
username: root
secrets: [ ssh_key ]
port: 22022
target: /data/incoming
source: ../wit-network-config_*_all.deb
strip_components: 1
- echo $SSH_KEY >~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- scp -i ~/.ssh/id_rsa -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v1.cloud.wit.com:/data/incoming
environment:
- SSH_KEY=$$ssh_key