adding support for prod and stage branch to push to various repo components

This commit is contained in:
toby 2018-12-01 18:28:41 +01:00
parent 8e8e18adc0
commit d1e2f90bd6
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ 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 -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}
secrets: [ ssh_key ]
branches: [ master, edge-support, bastion-support ]
branches: [ staging, prod ]