Environment Variables
Environment variables can be used from three different sources. Shell environment, .env files or predefined values inside the build file.
Shell environment
Environment variables which are available from the shell environment get passed into the command before execution.
.hammerkit.yaml
.env file
Environment variables can be defined in the .env file. Those are recommended for secret values that should not be committed nor public.
.env
.hammerkit.yaml
Defined values in the build file
Environment variables can be defined in the build file itself. They are can be defined for the entire build file or only for specific tasks.
.hammerkit.yaml
Last updated
Was this helpful?