mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-09 23:39:51 +07:00
Add linters for metal and infra
This commit is contained in:
4
Makefile
4
Makefile
@ -24,3 +24,7 @@ docs:
|
|||||||
|
|
||||||
.PHONY: apply
|
.PHONY: apply
|
||||||
apply: metal infra apps
|
apply: metal infra apps
|
||||||
|
|
||||||
|
lint:
|
||||||
|
make -C metal lint
|
||||||
|
make -C infra lint
|
||||||
|
@ -16,3 +16,6 @@ apply: plan
|
|||||||
|
|
||||||
destroy:
|
destroy:
|
||||||
terraform destroy
|
terraform destroy
|
||||||
|
|
||||||
|
lint:
|
||||||
|
terraform fmt -recursive -diff -check
|
||||||
|
@ -11,3 +11,6 @@ shutdown:
|
|||||||
ansible-playbook \
|
ansible-playbook \
|
||||||
--inventory hosts.yml \
|
--inventory hosts.yml \
|
||||||
shutdown.yml
|
shutdown.yml
|
||||||
|
|
||||||
|
lint:
|
||||||
|
ansible-lint --project-dir .
|
||||||
|
@ -5,6 +5,8 @@ COPY ./mirrorlist /etc/pacman.d/mirrorlist
|
|||||||
|
|
||||||
RUN yes | pacman --sync --refresh \
|
RUN yes | pacman --sync --refresh \
|
||||||
ansible \
|
ansible \
|
||||||
|
ansible-lint \
|
||||||
|
diffutils \
|
||||||
docker \
|
docker \
|
||||||
docker-compose \
|
docker-compose \
|
||||||
git \
|
git \
|
||||||
|
Reference in New Issue
Block a user