Commit 9d893144 authored by Finn's avatar Finn

Shrink output and upload

parent 61cf7dbf
Pipeline #3075 passed with stage
in 14 minutes and 51 seconds
......@@ -6,3 +6,8 @@ build:
- git -C .. clone git@${CI_SERVER_HOST}:entanglement.garden/vm-images/common.git
script:
- make
- qemu-img info image-host.qcow2
artifacts:
paths:
- image-host.qcow2
expire_in: 1 hour
image-host: image-host/image-host.qcow2
all: image-host.qcow2
ssh_key.pub: ssh_key
......@@ -8,5 +8,5 @@ ssh_key:
http/user-data: ssh_key.pub
sed "s#SSH_KEY#$(shell cat ssh_key.pub)#g" ../common/user-data-template.yaml > http/user-data
image-host/image-host.qcow2: http/user-data
image-host.qcow2: http/user-data
packer build -timestamp-ui -var-file ../common/vars.json image-host.json
......@@ -35,5 +35,16 @@
"../common/scripts/debian/clean.sh"
]
}
],
"post-processors": [
{
"type": "shell-local",
"inline": [
"qemu-img convert -O qcow2 image-host/image-host.qcow2 image-host.qcow2",
"rm -rf image-host/",
"qemu-img info image-host.qcow2"
]
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment