trying to fix staging component

This commit is contained in:
toby 2018-12-01 18:42:51 +01:00
parent adefd694e4
commit 022daebf3c
1 changed files with 3 additions and 2 deletions

View File

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