Skip to content
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

feat: Omit value in docker env vars if it is not set #232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ErZimmermann
Copy link

@ErZimmermann ErZimmermann commented Dec 20, 2024

When only the name without any value is provided for an environment variable in the metadata yaml of a step, currently the logic resolves this to --env variable= to be passed to the docker container, which always results in the environment variable not being set. Instead, if no value is provided, the = should be omitted so the value is read from the environment in which the docker command is executed.

@ErZimmermann ErZimmermann changed the title feat: Omit value in docker env vars if it equals empty string feat: Omit value in docker env vars if it is not set Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant