Brijesh's Git Server — identity @ 8c36e39b8c6eda064ffa45901a976c3ebf028d97

authentication service

core/Makefile (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
build:
	@echo "Building..."


	@go build -o main cmd/main.go

run:
	@go run cmd/main.go


docker-run:
	docker-compose --project-name identity up;

docker-down:
	docker-compose down;
	@rm -f main
	docker container prune --force
	docker rmi $(docker images -q)
	docker volume rm $(docker volume ls -q --filter dangling=true)

watch:
	@if command -v air > /dev/null; then \
            air; \
            echo "Watching...";\
        else \
            echo "Installing air..."; \
            go install github.com/air-verse/air@latest; \
            air; \
            echo "Watching...";\
        fi


.PHONY: build run watch