Travis: Run script directly on host system w/o alpine-chroot-install

This commit is contained in:
Jakub Jirutka 2017-10-11 19:51:06 +02:00
parent c50b9100a1
commit 7b64749745
2 changed files with 15 additions and 6 deletions

View file

@ -1,18 +1,18 @@
dist: trusty
sudo: required
language: minimal
before_install:
- "wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.6.0/alpine-chroot-install' \
&& echo 'a827a4ba3d0817e7c88bae17fe34e50204983d1e alpine-chroot-install' | sha1sum -c || exit 1"
install:
- sudo sh alpine-chroot-install -b v3.6
addons:
apt:
packages:
- qemu-utils
before_script:
- sudo modprobe nbd
script:
- /alpine/enter-chroot ./alpine-make-vm-image
- sudo ./alpine-make-vm-image
--image-format qcow2
--image-size 2G
--repositories-file example/repositories
--keys-dir example/keys
--packages "$(cat example/packages)"
--script-chroot
alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh

View file

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1yHJxQgsHQREclQu4Ohe
qxTxd1tHcNnvnQTu/UrTky8wWvgXT+jpveroeWWnzmsYlDI93eLI2ORakxb3gA2O
Q0Ry4ws8vhaxLQGC74uQR5+/yYrLuTKydFzuPaS1dK19qJPXB8GMdmFOijnXX4SA
jixuHLe1WW7kZVtjL7nufvpXkWBGjsfrvskdNA/5MfxAeBbqPgaq0QMEfxMAn6/R
L5kNepi/Vr4S39Xvf2DzWkTLEK8pcnjNkt9/aafhWqFVW7m3HCAII6h/qlQNQKSo
GuH34Q8GsFG30izUENV9avY7hSLq7nggsvknlNBZtFUcmGoQrtx3FmyYsIC8/R+B
ywIDAQAB
-----END PUBLIC KEY-----