slaventius 2 years ago
parent 1033eaf6ee
commit 18cfdd6371
  1. 8
      build/Makefile

@ -7,6 +7,12 @@ APP=authDBService
APP_BINARY=${GOBIN}/${APP}-${GOOS}-${GOARCH}
APP_TAG=slaventius/test3k_auth_db:latest
cpush:
@echo "push ${APP}" && cd ..
@git add .
@git commit -m "*"
@git push
clean:
@echo "cleaning ${APP_BINARY}"
@go clean
@ -16,7 +22,7 @@ build: clean
@echo "building ${APP_BINARY}"
@go build -o ${APP_BINARY} -ldflags "-s -w" ../cmd/main.go
docker-build:
docker-build: cpush
@echo "building docker-image ${APP_TAG}"
@sudo docker build --no-cache --tag ${APP_TAG} .

Loading…
Cancel
Save