We would like to give input arguments to our snapcraft.yaml, or to the multipass, and don’t know what would be the best way of doing it.
Let’s say we want to do a specific build that will use a specific git commit, and/or give a specific option to some scripts being triggered during the snap build process that we will push to a specific edge/beta/candidate channel. (all of this from a script)
What would be the best and possible way to achieve this ? Is it possible to :
- Use an Environment variable from to communicate with the building process in the multipass environment ?
- Give an input argument/option to the snapcraft.yaml (did not find any doc for this)
- Other option ?
We want to avoid having several snapcraft.yaml files because it will be hard to maintain since they will have most of the code in common