github.com/docker/compose-on-kubernetes@v0.5.0/common.mk (about)

     1  PKG_NAME = github.com/docker/compose-on-kubernetes
     2  REGISTRY_ORG ?= docker
     3  IMAGE_REPO_PREFIX ?= $(REGISTRY_ORG)/kube-compose-dev-
     4  TAG ?= latest
     5  
     6  ifeq ($(GITCOMMIT),)
     7    override GITCOMMIT := ${shell git rev-parse --short HEAD 2> /dev/null || echo "unknown-commit"}
     8    ifneq ($(strip $(shell git status --porcelain 2> /dev/null)),)
     9      override GITCOMMIT := $(addsuffix "-dirty", ${GITCOMMIT})
    10    endif
    11  endif
    12  ifeq ($(VERSION),)
    13    override VERSION := ${shell git describe --dirty --tags 2> /dev/null || echo "unknown-version"}
    14  endif
    15  
    16  ifeq ($(BUILDTIME),)
    17    override BUILDTIME := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ" 2> /dev/null)
    18  endif
    19  ifeq ($(BUILDTIME),)
    20    override BUILDTIME := unknown-buildtime
    21    $(warning unable to set BUILDTIME. Set the value manually)
    22  endif