-
Notifications
You must be signed in to change notification settings - Fork 65
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
README.md, src/main.sh, test/local-test.sh: Support for 'run-all' options #5
base: master
Are you sure you want to change the base?
Conversation
maniankara
commented
Feb 24, 2021
- Support for run-all command line options
- test/local-test.sh: Added script to run local testing
- README.md: Updated about local testing
…ions 1. test/local-test.sh: Added script to run local testing 2. README.md: Updated about local testing
…li to docker container 1. Adding equivalent support for args param in github actions step
Is this project still maintained? Being able to use 'run-all' Terragrunt sub-commands is a must, without it this GH action is very limited and not reflecting real live use cases. |
@maniankara btw. did you cater for |
@spol-vt I think I didnt test it, but I think it should be just passed to terragrunt and handled. |
Can we merge this please? |
I think it might already work by ab(using) the with:
tf_actions_binary: "terragrunt run-all" |
Setting |
Does this PR actually work? I don't think it does. I have the following set.
Which outputs the following.
Basically, the code is a hack to pretend the apply subcommand will work if we put in a run-all prefix but 'terragrunt run-all apply' is actually different from just doing a 'terragrunt apply'. The latter needs a terragrunt.hcl file in the working directory, while the run-all apply doesn't need a terragrunt.hcl file. |
@ulankford I'm not sure if the PR works. I used @wyarde suggestion with the main branch, setting Working code from my environment - name: Terragrunt Apply
if: github.ref == 'refs/heads/main'
uses: the-commons-project/terragrunt-github-actions@master
with:
tf_actions_version: ${{ env.tf_version }}
tg_actions_version: ${{ env.tg_version }}
tf_actions_cli_credentials_token: ${{ secrets.TF_API_TOKEN_DEV }}
tf_actions_binary: "terragrunt run-all"
tf_actions_subcommand: 'apply'
tf_actions_working_dir: ${{ env.tf_working_dir }}
tf_actions_comment: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KUBERGRUNT_EXEC: ${{ github.workspace }}/tmp_bin/kubergrunt |
Yes, that does work for me too now. Thanks for posting that. |
For anyone still having problems, env:
TF_INPUT: false Does not work but, env:
TF_INPUT: `false` ↑ works |