Update Makefile

This ps updates the build commands to allow the same
format to be used in att-comdev projects

Change-Id: I82c7083cfb1414c18b3e3bc14852a316e68736f3
This commit is contained in:
Stacey Fletcher 2018-02-21 21:23:29 -06:00 committed by Jenkins
parent f0cc8b6c1a
commit 4924e65a0f
1 changed files with 5 additions and 2 deletions

View File

@ -12,12 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
DECKHAND_IMAGE_NAME ?= deckhand
DOCKER_REGISTRY ?= quay.io
IMAGE_NAME ?= deckhand
IMAGE_PREFIX ?= attcomdev
IMAGE_TAG ?= latest
HELM ?= helm
LABEL ?= commit-id
IMAGE := ${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${IMAGE_NAME}:${IMAGE_TAG}
# Build Deckhand Docker image for this project
.PHONY: images
images: build_deckhand
@ -40,7 +43,7 @@ dry-run: clean
# Make targets intended for use by the primary targets above.
.PHONY: build_deckhand
build_deckhand:
docker build -t $(IMAGE_PREFIX)/$(DECKHAND_IMAGE_NAME):$(IMAGE_TAG) --label $(LABEL) .
docker build -t $(IMAGE) --label $(LABEL) .
.PHONY: clean
clean: