Capstone/ui/Makefile

24 lines
590 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
infra-clean:
cd docker; docker compose down
infra:
cd docker; docker compose up -d --remove-orphans
2023-10-23 22:01:09 -04:00
build:
2023-11-19 10:37:45 -05:00
docker build -f ../docker/ui.dockerfile . -t frontend-service:latest
2023-10-23 22:01:09 -04:00
docker tag frontend-service:latest $(BASE_URL)/frontend-service:latest
deploy: build
docker push $(BASE_URL)/frontend-service:latest