Capstone/ui/Makefile

17 lines
458 B
Makefile
Raw Normal View History

2023-10-26 12:35:53 -04:00
BASE_URL="us-central1-docker.pkg.dev/pbaxter-infra/capstone-repo"
2023-10-23 22:01:09 -04:00
2023-11-05 12:02:39 -05:00
local-build:
2023-11-05 12:34:53 -05:00
rm **/*_templ.go; templ generate -path ./templates
2023-11-05 12:02:39 -05:00
npx tailwindcss -i static/index.css -o dist/output.css
GOEXPERIMENT=loopvar go build -o ./tmp/main .
local-run: local-build
./tmp/main
2023-10-23 22:01:09 -04:00
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