Capstone/ui/Makefile

17 lines
458 B
Makefile

BASE_URL="us-central1-docker.pkg.dev/pbaxter-infra/capstone-repo"
local-build:
rm **/*_templ.go; templ generate -path ./templates
npx tailwindcss -i static/index.css -o dist/output.css
GOEXPERIMENT=loopvar go build -o ./tmp/main .
local-run: local-build
./tmp/main
build:
docker build . -t frontend-service:latest
docker tag frontend-service:latest $(BASE_URL)/frontend-service:latest
deploy: build
docker push $(BASE_URL)/frontend-service:latest