Create a variable for BUILDSTEP_REPO

This commit is contained in:
Praneeth Bodduluri 2014-07-10 15:57:57 +02:00 committed by Pablo Carranza Vélez
parent d5c9735525
commit 451cb06faf
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,3 @@
FROM rpi-buildstep-armv6hf:latest
FROM resin/rpi-buildstep-armv6hf:latest
ADD . /app
RUN /build/builder

View File

@ -10,11 +10,13 @@ BUILDSTEP_REGISTRY = registry.staging.resin.io
BUILDSTEP_VERSION = latest
BUILDSTEP_REPO = resin/rpi-buildstep-armv6hf
all: supervisor
supervisor:
docker pull $(BUILDSTEP_REGISTRY)/resin/rpi-buildstep-armv6hf:$(BUILDSTEP_VERSION)
docker tag $(BUILDSTEP_REGISTRY)/resin/rpi-buildstep-armv6hf:$(BUILDSTEP_VERSION) rpi-buildstep-armv6hf:latest
docker pull $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION)
docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/rpi-buildstep-armv6hf:latest
docker build --no-cache=$(DISABLE_CACHE) -t $(IMAGE):$(SUPERVISOR_VERSION) .
docker tag $(IMAGE):$(SUPERVISOR_VERSION) $(SUPERVISOR_REGISTRY)/$(IMAGE):$(SUPERVISOR_VERSION)