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

Add support for custom code execution #6

Merged
merged 21 commits into from
Jul 20, 2023
Merged

Conversation

denis256
Copy link
Member

Description

Added support for passing environment variables with custom commands which will be executed before running Terragrunt - helpful to do environment configurations since Terragrunt is executed in separated container which doesn't inherit settings from previous steps.

For example, can passed commands to set global git settings: git config --global

Included changes:

  • added identification of INPUT_PRE_EXEC_number variables and execution of code
  • update documentation to reference usage

Fixes #5

Release Notes (draft)

Added / Removed / Updated [X].

Added support for env variables INPUT_PRE_EXEC_<number> which can be used to pass custom bash commands to be executed before running Terragrunt.

Migration Guide

@denis256 denis256 marked this pull request as ready for review July 20, 2023 17:48
@denis256 denis256 merged commit fc077c6 into main Jul 20, 2023
@denis256 denis256 deleted the feature/pre-exec-code branch July 20, 2023 19:31
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.

Setting git global config not working for using PAT token
2 participants