trying to fix the drone build since we added arm stuff - just so that it build at least amd64

This commit is contained in:
toby 2019-02-08 21:32:40 +00:00
parent 91af53e787
commit ca85ddf8f3
1 changed files with 5 additions and 3 deletions

View File

@ -2,14 +2,16 @@ pipeline:
build: build:
image: registry.i.wit.com/toby/packager:1.3 image: registry.i.wit.com/toby/packager:1.3
commands: commands:
- echo "wit-pxeboot (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
- export ARCH=amd64 - export ARCH=amd64
- export DEBNAME=wit-pxeboot-$ARCH
- ln -s debian-$ARCH debian
- 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
- ./create_pxeinitrd.sh - ./create_pxeinitrd.sh
- dpkg-buildpackage --no-sign - dpkg-buildpackage --no-sign
- ls -lha ../wit-pxeboot_*_all.deb - ls -lha ../$DEBNAME_*_all.deb
- echo "$SSH_KEY" >/tmp/id_rsa - echo "$SSH_KEY" >/tmp/id_rsa
- chmod 600 /tmp/id_rsa - chmod 600 /tmp/id_rsa
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../wit-pxeboot_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental} - scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../$DEBNAME_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental}
secrets: [ ssh_key ] secrets: [ ssh_key ]
branches: branches:
- master - master