more debugging on the drone build

This commit is contained in:
toby 2018-12-01 19:14:46 +01:00
parent d3c5c5eb47
commit 383375dafe
1 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,10 @@
pipeline:
build:
image: registry.i.wit.com/toby/packager:1.3
environment:
- SHELL=/bin/bash
commands:
- echo Building ${DRONE_BRANCH/prod/}
- echo Building $${DRONE_BRANCH/prod/ }
- apt-get --allow-releaseinfo-change update
- apt-get install -y sed strongswan frr isc-dhcp-client systemd
- apt-get clean
@ -11,6 +13,8 @@ pipeline:
- ls -lha ../wit-network-config_*_all.deb
- echo "$SSH_KEY" >/tmp/id_rsa
- chmod 600 /tmp/id_rsa
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/${DRONE_BRANCH/prod/}
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/$${DRONE_BRANCH/prod/ }
secrets: [ ssh_key ]
branches: [ staging, prod ]
branches:
- prod
- staging