Brijesh's Git Server — argus-core @ main

Logging service

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
 34
 35
docker-build:
	docker build -t brijeshwawdhane/argus-core:0.1.1-alpha.1 .

docker-push:
	docker push brijeshwawdhane/argus-core:0.1.1-alpha.1

k-deployment-reapply:
	kubectl delete -f k8s/deployment.yaml
	kubectl apply -f k8s/deployment.yaml

k-rbac-reapply:
	kubectl delete -f k8s/rbac.yaml
	kubectl apply -f k8s/rbac.yaml

k-service-reapply:
	kubectl delete -f k8s/service.yaml
	kubectl apply -f k8s/service.yaml

watch:
	@if command -v air > /dev/null; then \
            air; \
            echo "Watching...";\
        else \
            read -p "Go's 'air' is not installed on your machine. Do you want to install it? [Y/n] " choice; \
            if [ "$$choice" != "n" ] && [ "$$choice" != "N" ]; then \
                go install github.com/air-verse/air@latest; \
                air; \
                echo "Watching...";\
            else \
                echo "You chose not to install air. Exiting..."; \
                exit 1; \
            fi; \
        fi

.PHONY: docker-build docker-push k-deployment-reapply k-rbac-reapply k-service-reapply watch