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

support terragrunt blocks #1574

Merged
merged 4 commits into from
Jun 13, 2024
Merged

support terragrunt blocks #1574

merged 4 commits into from
Jun 13, 2024

Conversation

motatoes
Copy link
Contributor

@motatoes motatoes commented Jun 11, 2024

We already have support for blocks: but for terraform projects. I’m thinking that we can adapt the same for terragrunt but additional terragrunt: true flag for those projects. if terragrunt is true then we have common arguments of workflow and workflow_file, but if false then user can use include/include arguments as it used to be for terraform generation

generate_projects
    blocks:
      - block_name: dev
        terragrunt: true
        root_dir: "dev/"
        workflow: default
        workflow_file: digger_workflow_dev.yml
      - block_name: staging
        terragrunt: true
        root_dir: "staging/"
        workflow: default
        workflow_file: digger_workflow_staging.yml

This PR also refactors the functions for gitlab, bitbucket azureDevops since they are all duplicates and we weill be moving to a spec to unify those branches eventually (#1540)

@motatoes motatoes merged commit 765cf7c into develop Jun 13, 2024
9 checks passed
@motatoes motatoes deleted the feat/support-terragrunt-blocks branch June 13, 2024 13:38
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.

None yet

2 participants