Skip to content
Draft
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
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/mesh-perf-ci
role-duration-seconds: 7200
aws-region: us-west-1
- name: Setup go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
Expand All @@ -23,6 +29,8 @@ jobs:
run: make dev/tools
- name: make check
run: make check
- name: make terraform/init
run: make terraform/init
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
Expand Down
3 changes: 3 additions & 0 deletions mk/infrastructure.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ terraform/init/%: CHDIR = $*
terraform/init/%:
$(TF_CMD) init$(if $(UPGRADE), -upgrade,)$(if $(RECONFIGURE), -reconfigure,)

.PHONY: terraform/init
terraform/init: $(foreach component,$(notdir $(wildcard $(TOP)/infrastructure/*)),terraform/init/$(component))

# Generic rule to apply or destroy Terraform configurations.
# - Uses $* to dynamically extract the directory path from the target.
# - Extracts "apply" or "destroy" from the target name via $(word 2,$(subst /,,$@)).
Expand Down
Loading