2024-07-15 18:28:47 +05:00
|
|
|
.PHONY: start build publish
|
|
|
|
|
|
|
|
export GOBIN=${CURDIR}/bin
|
|
|
|
|
|
|
|
version ?= master
|
|
|
|
|
|
|
|
$(GOBIN)/air:
|
|
|
|
go install github.com/air-verse/air@latest
|
|
|
|
|
|
|
|
start: $(GOBIN)/air
|
2024-07-25 15:59:51 +05:00
|
|
|
$(GOBIN)/air
|
2024-07-15 18:28:47 +05:00
|
|
|
|
|
|
|
build:
|
2024-08-06 09:15:08 +05:00
|
|
|
docker build . --tag daemongit.dyndns.info/just_a_test/devops-test-app:$(version) --debug
|
2024-07-15 18:28:47 +05:00
|
|
|
|
|
|
|
publish:
|
2024-08-06 09:03:12 +05:00
|
|
|
docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
|