parent
b9e352efad
commit
0cd1474909
@ -1,21 +0,0 @@
|
||||
FMT_TARGETS := \
|
||||
meatballhat.com \
|
||||
jool.meatballhat.com \
|
||||
gilly.meatballhat.com \
|
||||
vault.meatballhat.com
|
||||
|
||||
.PHONY: default
|
||||
default: check
|
||||
|
||||
.PHONY: check
|
||||
check: terrafmt shlint
|
||||
|
||||
.PHONY: terrafmt
|
||||
terrafmt: $(foreach t,$(FMT_TARGETS),.fmt.$(t))
|
||||
|
||||
.PHONY: shlint
|
||||
shlint:
|
||||
GITHUB_WORKSPACE=$(PWD) bash .github/actions/shlint/entrypoint
|
||||
|
||||
.fmt.%:
|
||||
terraform fmt -check $*
|
@ -1 +0,0 @@
|
||||
include $(shell git rev-parse --show-toplevel)/terraform.mk
|
@ -1 +0,0 @@
|
||||
include $(shell git rev-parse --show-toplevel)/terraform.mk
|
@ -1,17 +0,0 @@
|
||||
PYTHON := python3
|
||||
|
||||
HTTP_PORT := 9000
|
||||
SERVER_MODULE := http.server
|
||||
|
||||
NOW = $(shell date -u)
|
||||
|
||||
.PHONY: all
|
||||
all: humans.txt
|
||||
|
||||
humans.txt: humans.txt.in index.html
|
||||
cat humans.txt.in | sed "s/___LAST_UPDATE___/$(NOW)/" | \
|
||||
iconv -f ISO-8859-1 -t utf-8 > $@
|
||||
|
||||
.PHONY: serve
|
||||
serve:
|
||||
$(PYTHON) -m $(SERVER_MODULE) $(HTTP_PORT)
|
Before Width: | Height: | Size: 524 B |
@ -0,0 +1,10 @@
|
||||
set dotenv-load := false
|
||||
|
||||
now := `date -u`
|
||||
|
||||
all:
|
||||
sed "s/___LAST_UPDATE___/{{now}}/" <humans.txt.in | \
|
||||
iconv -f ISO-8859-1 -t utf-8 | tee humans.txt &>/dev/null
|
||||
|
||||
serve port='9000':
|
||||
python3 -m http.server {{port}}
|
@ -0,0 +1,13 @@
|
||||
set dotenv-load := false
|
||||
|
||||
fmt_targets := "meatballhat.com jool.meatballhat.com gilly.meatballhat.com vault.meatballhat.com"
|
||||
|
||||
check: terrafmt shlint
|
||||
|
||||
terrafmt:
|
||||
for t in {{ fmt_targets }} ; do \
|
||||
terraform fmt -check "${t}"; \
|
||||
done
|
||||
|
||||
shlint:
|
||||
GITHUB_WORKSPACE={{justfile_directory()}} bash .github/actions/shlint/entrypoint
|
@ -1 +0,0 @@
|
||||
include $(shell git rev-parse --show-toplevel)/terraform.mk
|
@ -1,14 +0,0 @@
|
||||
TFPLAN := main.tfplan
|
||||
TFPLAN_PREREQS ?=
|
||||
|
||||
.PHONY: plan
|
||||
plan: $(TFPLAN_PREREQS)
|
||||
terraform plan -out $(TFPLAN)
|
||||
|
||||
.PHONY: apply
|
||||
apply: $(TFPLAN)
|
||||
terraform apply $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) $(TFPLAN)
|
@ -1 +0,0 @@
|
||||
include $(shell git rev-parse --show-toplevel)/terraform.mk
|
Loading…
Reference in new issue