Skip to content

Commit

Permalink
support building with OpenTofu (#1922)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh authored Dec 9, 2023
1 parent 5c5edba commit b003ee8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cfg?=images/static/configs/wolfi.apko.yaml
TERRAFORM ?= $(shell which terraform)

.PHONY: apko-build
apko-build:
Expand Down Expand Up @@ -29,13 +30,13 @@ endif

.PHONY: all
all: check-env-tf init
terraform apply $(TF_VARS)
$(TERRAFORM) apply $(TF_VARS)

image/%: check-env-tf init
terraform apply $(TF_VARS) -target=module.$*
$(TERRAFORM) apply $(TF_VARS) -target=module.$*

init:
terraform init -upgrade
$(TERRAFORM) init -upgrade

LOCAL_REGISTRY_NAME := k3d.localhost
LOCAL_REGISTRY_PORT := 5005
Expand Down

0 comments on commit b003ee8

Please sign in to comment.