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

make targets #14

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ 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]
env:
SKIP: terragrunt_validate
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
Loading