28 lines
845 B
YAML
28 lines
845 B
YAML
|
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
|
||
|
before_script:
|
||
|
- sudo modprobe nbd
|
||
|
script:
|
||
|
- /alpine/enter-chroot ./alpine-make-vm-image
|
||
|
--image-format qcow2
|
||
|
--image-size 2G
|
||
|
--repositories-file example/repositories
|
||
|
--packages "$(cat example/packages)"
|
||
|
--script-chroot
|
||
|
alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh
|
||
|
#deploy:
|
||
|
# provider: releases
|
||
|
# api_key:
|
||
|
# secure: <Encrypted GitHub Personal Token>
|
||
|
# file: "*.qcow2"
|
||
|
# file_glob: true
|
||
|
# skip_cleanup: true
|
||
|
# on:
|
||
|
# tags: true
|