14 lines
706 B
YAML
14 lines
706 B
YAML
pipeline:
|
|
build:
|
|
image: registry.v1.cloud.wit.com/toby/packager:1.2
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install -y sed strongswan frr isc-dhcp-client systemd
|
|
- apt-get clean
|
|
- 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.v1.cloud.wit.com:/data/incoming
|
|
secrets: [ ssh_key ]
|