updating .drone file for mirrors
This commit is contained in:
parent
ec5869cba8
commit
22008293c5
|
@ -3,17 +3,17 @@ pipeline:
|
|||
image: registry.i.wit.com/toby/packager:1.3
|
||||
environment:
|
||||
- SHELL=/bin/bash
|
||||
- DEBNAME=wit-network-config
|
||||
commands:
|
||||
- echo Building ${DRONE_BRANCH/master/experimental}
|
||||
- apt-get --allow-releaseinfo-change update
|
||||
- apt-get install -y sed strongswan frr isc-dhcp-client systemd
|
||||
- apt-get clean
|
||||
- echo "wit-network-config (2.0.$(TZ=UTC date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit <netops@wit.com> $(TZ=UTC date -R)" >debian/changelog
|
||||
- echo "$DEBNAME (1.0.$(date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit <netops@wit.com> $(date -R)" >debian/changelog
|
||||
- dpkg-buildpackage --no-sign
|
||||
- ls -lha ../wit-network-config_*_all.deb
|
||||
- ls -lha ../$DEBNAME_*_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/master/experimental}
|
||||
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no ../$DEBNAME_*_all.deb debcore@mirrors.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental}
|
||||
secrets: [ ssh_key ]
|
||||
branches:
|
||||
- master
|
||||
|
|
Loading…
Reference in New Issue