1- include includes.mk
2-
31# Short name: Short name, following [a-zA-Z_], used all over the place.
42# Some uses for short name:
53# - Docker image name
64# - Kubernetes service, rc, pod, secret, volume names
75SHORT_NAME := registry
86
9- VERSION ?= git- $( shell git rev-parse --short HEAD)
7+ include includes.mk versioning.mk
108
119# the filepath to this repository, relative to $GOPATH/src
1210REPO_PATH = github.com/deis/registry
@@ -22,9 +20,6 @@ BINDIR := ./rootfs/opt/registry/sbin
2220# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY.
2321DEIS_REGISTRY ?= ${DEV_REGISTRY}
2422
25- IMAGE_PREFIX ?= deis
26-
27-
2823ifeq ($(STORAGE_TYPE ) ,)
2924 STORAGE_TYPE = fs
3025endif
3328SECRET := contrib/kubernetes/manifests/${SHORT_NAME}-${STORAGE_TYPE}-secret.yaml
3429RC := contrib/kubernetes/manifests/${SHORT_NAME}-rc.yaml
3530SVC := contrib/kubernetes/manifests/${SHORT_NAME}-service.yaml
36- IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
3731
3832all :
3933 @echo " Use a Makefile to control top-level building of the project."
@@ -46,6 +40,7 @@ build: check-docker
4640# We also alter the RC file to set the image name.
4741docker-build : check-docker build
4842 docker build --rm -t ${IMAGE} .
43+ docker tag -f ${IMAGE} ${MUTABLE_IMAGE}
4944
5045# Push to a registry that Kubernetes can access.
5146docker-push : check-docker check-registry
0 commit comments