slaventius 2 years ago
parent d75e1d7fb2
commit 24d792e0c8
  1. 7
      README.md
  2. 25
      build/Makefile

@ -1,6 +1 @@
# authPostman
* http://git.slaventius.ru/test3k/authPostman.git
* docker build --no-cache --tag slaventius/test3k_auth_postman:latest ./build/
* docker push slaventius/test3k_auth_postman:latest
# authPostman

@ -0,0 +1,25 @@
.DEFAULT_GOAL := build
GOOS=linux
GOARCH=amd64
GOBIN=$(shell go env GOPATH)/bin
APP=authPostmanService
APP_BINARY=${GOBIN}/${APP}-${GOOS}-${GOARCH}
APP_TAG=slaventius/test3k_auth_postman:latest
clean:
@echo "cleaning ${APP_BINARY}"
@go clean
@rm ${APP_BINARY}
build: clean
@echo "building ${APP_BINARY}"
@go build -o ${APP_BINARY} -ldflags "-s -w" ../cmd/main.go
docker-build:
@echo "building docker-image ${APP_TAG}"
@sudo docker build --no-cache --tag ${APP_TAG} .
docker-push: docker-build
@echo "pushing docker-image ${APP_TAG}"
@sudo docker push ${APP_TAG}
Loading…
Cancel
Save