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
|
- dpkg-buildpackage --no-sign
|
||||||
- ls -lha ../wit-network-config_*_all.deb
|
- ls -lha ../wit-network-config_*_all.deb
|
||||||
- find / -name *.deb
|
- find / -name *.deb
|
||||||
upload:
|
- echo $SSH_KEY >~/.ssh/id_rsa
|
||||||
image: appleboy/drone-scp
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
host: cloud-api.v1.cloud.wit.com
|
- scp -i ~/.ssh/id_rsa -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v1.cloud.wit.com:/data/incoming
|
||||||
username: root
|
environment:
|
||||||
secrets: [ ssh_key ]
|
- SSH_KEY=$$ssh_key
|
||||||
port: 22022
|
|
||||||
target: /data/incoming
|
|
||||||
source: ../wit-network-config_*_all.deb
|
|
||||||
strip_components: 1
|
|
||||||
|
|
Loading…
Reference in New Issue