24 lines
711 B
Makefile
24 lines
711 B
Makefile
docker_image := "hvac-toolbox"
|
|
docker_tag := "latest"
|
|
do_registery := "registry.digitalocean.com/swift-hvac-toolbox"
|
|
|
|
build-docker:
|
|
@docker build -t {{docker_image}}:{{docker_tag}} .
|
|
|
|
run:
|
|
#!/usr/bin/env zsh
|
|
touch .build/browser-dev-sync
|
|
browser-sync start -p localhost:8080 --ws &
|
|
watchexec -w Sources -e .swift -r 'swift build --product App && touch .build/browser-dev-sync' &
|
|
watchexec -w .build/browser-dev-sync --ignore-nothing -r '.build/debug/App serve --log debug'
|
|
|
|
run-css:
|
|
@pnpm run css-watch
|
|
|
|
clean:
|
|
@rm -rf .build
|
|
|
|
push-image tag="prod":
|
|
@docker tag {{docker_image}}:{{docker_tag}} {{do_registery}}/{{docker_image}}:{{tag}}
|
|
@docker push {{do_registery}}/{{docker_image}}:{{tag}}
|