adding support for prod and stage branch to push to various repo components
This commit is contained in:
parent
8e8e18adc0
commit
d1e2f90bd6
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue