Optional manual versioning strategy
parent
328cae8522
commit
c1b3f2d15d
8
Makefile
8
Makefile
|
@ -24,6 +24,12 @@ REGISTRY ?= thockin
|
|||
# Which architecture to build - see $(ALL_ARCH) for options.
|
||||
ARCH ?= amd64
|
||||
|
||||
# This version-strategy uses git tags to set the version string
|
||||
VERSION := $(shell git describe --always --dirty)
|
||||
#
|
||||
# This version-strategy uses a manual value to set the version string
|
||||
#VERSION := 1.2.3
|
||||
|
||||
###
|
||||
### These variables should not need tweaking.
|
||||
###
|
||||
|
@ -50,8 +56,6 @@ IMAGE := $(REGISTRY)/$(BIN)-$(ARCH)
|
|||
|
||||
BUILD_IMAGE ?= golang:1.7-alpine
|
||||
|
||||
VERSION := $(shell git describe --always --dirty)
|
||||
|
||||
# If you want to build all binaries, see the 'all-build' rule.
|
||||
# If you want to build all containers, see the 'all-container' rule.
|
||||
# If you want to build AND push all containers, see the 'all-push' rule.
|
||||
|
|
|
@ -15,6 +15,7 @@ Makefile:
|
|||
- change `PKG` to the Go import path of this repo
|
||||
- change `REGISTRY` to the Docker registry you want to use
|
||||
- maybe change `SRC_DIRS` if you use some other layout
|
||||
- choose a strategy for `VERSION` values - git tags or manual
|
||||
|
||||
Dockerfile.in:
|
||||
- change the `MAINTAINER` to you
|
||||
|
|
Loading…
Reference in New Issue