[#46] *: Reorganize variables and rename binary file in Makefile
Fix variables for docker, sorted variables' blocks Rename binary from authmate to neofs-authmate Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
3c61c69f44
commit
5b275bad18
1 changed files with 10 additions and 7 deletions
17
Makefile
17
Makefile
|
@ -1,17 +1,20 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# Common variables
|
||||
REPO ?= $(shell go list -m)
|
||||
VERSION ?= "$(shell git describe --tags 2>/dev/null || git rev-parse --short HEAD | sed 's/^v//')"
|
||||
|
||||
BIN_NAME=neofs-s3-gw
|
||||
HUB_IMAGE="nspccdev/$(BIN_NAME)"
|
||||
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
||||
BINDIR = bin
|
||||
|
||||
# s3 gate variables
|
||||
BIN_NAME=neofs-s3-gw
|
||||
BIN = "$(BINDIR)/$(BIN_NAME)"
|
||||
|
||||
AUTHMATE_BIN_NAME=authmate
|
||||
AUTHMATE_HUB_IMAGE="nspccdev/$(AUTHMATE_BIN_NAME)"
|
||||
AUTHMATE_HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
||||
# Variables for docker
|
||||
HUB_IMAGE ?= "nspccdev/$(BIN_NAME)"
|
||||
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
||||
|
||||
#authmate variables
|
||||
AUTHMATE_BIN_NAME=neofs-authmate
|
||||
AUTHMATE_BIN = "$(BINDIR)/$(AUTHMATE_BIN_NAME)"
|
||||
|
||||
.PHONY: help all dep clean format test cover lint docker/lint image-push image dirty-image
|
||||
|
|
Loading…
Reference in a new issue