-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting environment variables in project configuration #135
Comments
Hi, setting environment variables in the project config is already supported using the Can you provide a bit more details on your use-case? E.g. how your development workflow looks like? Best regards, |
Hello Felix, Thank you for the response, my use case is two fold. Being able to express such variables in the project configuration would allow us to move to being able to having all the necessary reproducibility information contained in the kas project definition itself without having to manually add things onto the build artifacts. Best regards, |
That means you do something like this, right? export KAS_CONTAINER_IMAGE="special-image:4.6"
kas-container build project-config.yml
Did you already look into the provenance feature? This should already provide most of the data. If you execute the build in a well-known CI system like GitLab-CI or GitHub Actions it also adds the job id. https://kas.readthedocs.io/en/latest/userguide/build-attestation.html. We could also think of providing an extension point so that the build environment can inject additional data. Expressing the Noting what was used during build is easy with the standardized provenance information, though. Together with a flattened kas config ( |
Hi,
I was wondering if the possibility to allow setting kas env variables in project configuration can be added?
My specific use case is that we have a bunch of projects, some of which require specific containers, and it would be great if we could specify the container to use, for development as well as for reproducibility afterwards, this is one of the only things that's currently not really captured in our configuration/output and has to be manually added to know which container is needed for a specific build/project.
I was thinking of being able to specify these variables in the configuration as there might be other ones that are interesting to set fixed e.g. DL_DIR, though this is mostly convenience.
Thanks for your consideration,
Jesse
The text was updated successfully, but these errors were encountered: