Skip to content

Commit

Permalink
make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed Sep 25, 2023
1 parent 5ac731f commit 5e1db71
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ on: # yamllint disable-line rule:truthy
branches:
- main

env:
TERRAGRUNT_VERSION: "0.51.4"
jobs:
pre_commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/[email protected]
- name: Install Terragrunt
run: |
curl -Lo terragrunt "https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64"
chmod +x terragrunt
sudo mv terragrunt /usr/local/bin/
- name: Verify Terragrunt installation
run: terragrunt --version
- uses: pre-commit/[email protected]
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ tf/apply:
.PHONY: tf/destroy
tf/destroy:
${TERRAGRUNT_CMD} destroy -terragrunt-log-level debug

tf/apply/audit:
cd live/${ENV}/audit && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/apply/gitlab-permissions:
cd live/${ENV}/gitlab-permissions && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/apply/gitlab-runners:
cd live/${ENV}/gitlab-runners && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/apply/oidc:
cd live/${ENV}/oidc && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/init/renovate-runners:
cd live/${ENV}/renovate-runners && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/plan/renovate-runners:
cd live/${ENV}/renovate-runners && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

tf/apply/renovate-runners:
cd live/${ENV}/renovate-runners && terragrunt run-all --terragrunt-non-interactive apply -auto-approve

0 comments on commit 5e1db71

Please sign in to comment.