- Build an image
- Extract id from manifest
- Run another builder with just a “inspec” provisioner to test
So, we successfully build images using packer over a couple of providers.
Afterwards, we extract the image id from the manifest and use the “inspec” provisioner to test our built image. This works fine, but annoyingly creates an image artifact.
For various reasons, we do not want to test in the first build step #1, one of which is we want to do a full power cycle.
So, what would be the best way to not have any artifacts, i.e. they are not created or removed when the builder finishes.
If all else fails, I guess, we’ll have to create a manifest file for the inspec provisioner as well and remove manually.
Open to any other suggestions as well.
Edit: Already read up on