Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

What is the best approach to deal with VERSION in atlas post-processor? #11

Open
wasadigi opened this issue Jan 27, 2016 · 1 comment
Open

Comments

@wasadigi
Copy link

If I use the template and want to update the box, then I need to update the version field in the metadata:

"metadata": {
"provider": "virtualbox",
"version": "0.0.4"

Not very difficult, but I am sure that there is a way to automate the process, so that I don't have to manually edit the template file each time something changes in my config. What is the recommended way to approach this?

@akemner
Copy link

akemner commented Apr 1, 2016

if you leave version blank in the template: "version": "" you can provide the version on the command line. here is an example from boxcutter which they use the VERSION file in their repo and cat that with their build script and pass that to the packer command
https://github.com/boxcutter/centos/blob/master/bin/build-box#L54

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants