main
parent
d75e1d7fb2
commit
24d792e0c8
2 changed files with 26 additions and 6 deletions
@ -1,6 +1 @@ |
|||||||
# authPostman |
# 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 |
|
||||||
|
|
@ -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…
Reference in new issue