Runtime variables are special variables that are only available in certain config areas and are filled during runtime. Those variables are useful to access certain runtime information, such as hook output or image tags.
- Separate Repo & Tag
- Customize Helm Values
If you try to use a runtime variable in a different config section, DevSpace will print an error and fail.
The following runtime variables exist:
runtime.images.IMAGE_NAME: Holds the image name (defined at
images.*.image) and tag that was built by DevSpace (e.g.
runtime.images.IMAGE_NAME.tag: Holds the image tag that was built by DevSpace (e.g.
runtime.images.IMAGE_NAME.image: Holds the image name (defined at
images.*.image) that was used for building (e.g.
runtime.hooks.HOOK_NAME.stdout: Holds the stdout output of an executed local or remote hook command
runtime.hooks.HOOK_NAME.stderr: Holds the stderr output of an executed local or remote hook command
You can also access runtime variables of an executed dependency by using