re-doing the scp part to test
This commit is contained in:
parent
52658cebe2
commit
90db3310de
14
.drone.yml
14
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue