40 lines
666 B
Makefile
40 lines
666 B
Makefile
.DEFAULT_GOAL := all
|
|
|
|
all: clean docker publish-kind publish-registry
|
|
|
|
|
|
linux:
|
|
./local_run.sh
|
|
|
|
purge:
|
|
lsof -t -i:8080 | xargs kill | true
|
|
|
|
run-dev:
|
|
flutter run -d linux --dart-define=AUTH_MODE=true
|
|
|
|
dev: purge run-dev
|
|
|
|
run:
|
|
flutter run
|
|
|
|
build:
|
|
flutter pub get
|
|
flutter build linux
|
|
flutter build web
|
|
|
|
clean:
|
|
rm -rf build/
|
|
flutter clean
|
|
|
|
docker:
|
|
DOCKER_BUILDKIT=1 docker build -t oc/oc-front:0.0.1 --build-arg HOST=$(HOST) -f Dockerfile .
|
|
docker tag oc/oc-front:0.0.1 oc/oc-front:latest
|
|
|
|
publish-kind:
|
|
kind load docker-image oc/oc-front:0.0.1 --name opencloud
|
|
|
|
publish-registry:
|
|
@echo "TODO"
|
|
|
|
.PHONY: build run clean docker publish-kind publish-registry
|