16 lines
974 B
YAML
16 lines
974 B
YAML
pipeline:
|
|
build:
|
|
image: registry.i.wit.com/toby/packager:1.3
|
|
commands:
|
|
- 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.$(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
|
|
- 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
|
|
secrets: [ ssh_key ]
|
|
branches: [ master, edge-support, bastion-support ]
|