build: Assert successful completion of cloud-init
Some checks failed
build-image / Build image (push) Failing after 7m40s
Some checks failed
build-image / Build image (push) Failing after 7m40s
This commit is contained in:
@ -82,6 +82,7 @@ jobs:
|
||||
run: |
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libguestfs-tools \
|
||||
qemu-system-x86 \
|
||||
qemu-utils
|
||||
|
||||
@ -100,9 +101,7 @@ jobs:
|
||||
-net nic \
|
||||
-net user
|
||||
|
||||
qemu-img convert -O qcow2 ubuntu-vm/ubuntu.img ubuntu-vm/ubuntu-compacted.img
|
||||
|
||||
ls -lash ubuntu-vm
|
||||
virt-ls -a ubuntu-vm/ubuntu.img /var/lib/cloud-init/ | grep -q template-generation-success
|
||||
|
||||
# semrel:
|
||||
# name: Semantic Release
|
||||
|
@ -18,7 +18,7 @@ runcmd:
|
||||
- truncate -s 0 /etc/hostname /etc/machine-id
|
||||
- rm -f /etc/ssh/ssh_host_* /var/lib/dbus/machine-id
|
||||
- ln -s /etc/machine-id /var/lib/dbus/machine-id
|
||||
- poweroff
|
||||
- touch /var/lib/cloud-init/template-generation-success
|
||||
|
||||
disable_root: false
|
||||
users:
|
||||
@ -30,3 +30,8 @@ users:
|
||||
- ${PUBLIC_SSHKEY}
|
||||
ssh_authorized_keys:
|
||||
- ${PUBLIC_SSHKEY}
|
||||
|
||||
power_state:
|
||||
delay: now
|
||||
mode: poweroff
|
||||
condition: true
|
||||
|
Reference in New Issue
Block a user