more debugging on the drone build

This commit is contained in:
toby 2018-12-01 18:54:57 +01:00
parent 2ca1595db8
commit 9c19bab033
1 changed files with 1 additions and 4 deletions

View File

@ -1,10 +1,7 @@
pipeline: pipeline:
build: build:
image: registry.i.wit.com/toby/packager:1.3 image: registry.i.wit.com/toby/packager:1.3
environment:
- RELEASE=$${DRONE_BRANCH/prod/}
commands: commands:
- echo Building $RELEASE from $DRONE_BRANCH
- apt-get --allow-releaseinfo-change update - apt-get --allow-releaseinfo-change update
- apt-get install -y sed strongswan frr isc-dhcp-client systemd - apt-get install -y sed strongswan frr isc-dhcp-client systemd
- apt-get clean - apt-get clean
@ -13,6 +10,6 @@ pipeline:
- ls -lha ../wit-network-config_*_all.deb - ls -lha ../wit-network-config_*_all.deb
- echo "$SSH_KEY" >/tmp/id_rsa - echo "$SSH_KEY" >/tmp/id_rsa
- chmod 600 /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/${RELEASE} - 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 ] secrets: [ ssh_key ]
branches: [ staging, prod ] branches: [ staging, prod ]