.DEFAULT_GOAL := all

all: clean docker publish-kind publish-registry

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 -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