Skip to content

Commit 40c30cd

Browse files
author
Seth Goings
committed
fix(Makefile/deploy): use standard deploy.sh location
Fixes #8
1 parent a779553 commit 40c30cd

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ include includes.mk
66
# - Kubernetes service, rc, pod, secret, volume names
77
SHORT_NAME := registry
88

9-
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
9+
VERSION ?= git-$(shell git rev-parse --short HEAD)
1010

1111
# Legacy support for DEV_REGISTRY, plus new support for DEIS_REGISTRY.
1212
DEIS_REGISTRY ?= ${DEV_REGISTRY}
1313

14-
IMAGE_PREFIX ?= deis/
14+
IMAGE_PREFIX ?= deis
1515

1616
# Kubernetes-specific information for RC, Service, and Image.
1717
RC := contrib/kubernetes/manifests/${SHORT_NAME}-rc.yaml
1818
SVC := contrib/kubernetes/manifests/${SHORT_NAME}-service.yaml
19-
IMAGE := ${DEIS_REGISTRY}/${IMAGE_PREFIX}${SHORT_NAME}:${BUILD_TAG}
19+
IMAGE := ${DEIS_REGISTRY}/${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
2020

2121
all:
2222
@echo "Use a Makefile to control top-level building of the project."
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
cd "$(dirname "$0")" || exit 1
77

8+
export IMAGE_PREFIX=deisci BUILD_TAG=v2-alpha
89
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" docker.io
9-
DEIS_REGISTRY=docker.io IMAGE_PREFIX=deisci/ BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
10+
DEIS_REGISTRY=docker.io make -C .. docker-build docker-push
1011
docker login -e="$QUAY_EMAIL" -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
11-
DEIS_REGISTRY=quay.io IMAGE_PREFIX=deisci/ BUILD_TAG=v2-alpha make -C ../.. docker-build docker-push
12+
DEIS_REGISTRY=quay.io make -C .. docker-build docker-push

0 commit comments

Comments
 (0)