JOBDATE ?= $(shell date -u +%Y-%m-%dT%H%M%SZ) GIT_REVISION = $(shell git rev-parse --short HEAD) VERSION ?= $(shell git describe --tags --abbrev=0) LDFLAGS += -X github.com/rusenask/keel/version.Version=$(VERSION) LDFLAGS += -X github.com/rusenask/keel/version.Revision=$(GIT_REVISION) LDFLAGS += -X github.com/rusenask/keel/version.BuildDate=$(JOBDATE) .PHONY: release test: go test -v `go list ./... | egrep -v /vendor/` build: @echo "++ Building keel" CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags "$(LDFLAGS)" -o keel . image: docker build -t karolisr/keel:alpha -f Dockerfile . alpha: image @echo "++ Pushing keel alpha" docker push karolisr/keel:alpha