ingress/justfile

27 lines
534 B
Makefile
Raw Normal View History

# Always use devbox environment to run commands.
set shell := ["devbox", "run"]
# Load dotenv
set dotenv-load
export TENV_AUTO_INSTALL := "true"
default:
@just --list
lint:
@tofu fmt -check -recursive .
@tflint --recursive
build:
@nix build .#vm
deploy:
#!/usr/bin/env sh
export NIX_RESULT_DIR=$(nix build --print-out-paths .#vm)
export IMAGE_NAME=$(ls ${NIX_RESULT_DIR} | grep ".vma.zst")
export TF_VAR_image_path=${NIX_RESULT_DIR}/${IMAGE_NAME}
cd {{justfile_directory()}}/terraform
tofu init
tofu apply