Tag the accelerated supervisor in the same way as the non-accelerated one.

This commit is contained in:
Pagan Gazzard 2014-07-18 16:06:56 +01:00 committed by Pablo Carranza Vélez
parent d7abc9e8bd
commit 7a5197d68e

View File

@ -39,8 +39,8 @@ endif
docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/supervisor-base:latest docker tag $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) resin/supervisor-base:latest
docker rm build-supervisor-latest 2> /dev/null || true docker rm build-supervisor-latest 2> /dev/null || true
docker run --name build-supervisor-latest --volumes-from $(ACCELERATOR):ro -v `pwd`:/tmp/app resin/supervisor-base:latest bash -i -c ". /.env && cp -r /tmp/app /app && /build/builder" docker run --name build-supervisor-latest --volumes-from $(ACCELERATOR):ro -v `pwd`:/tmp/app resin/supervisor-base:latest bash -i -c ". /.env && cp -r /tmp/app /app && /build/builder"
docker commit build-supervisor-latest $(IMAGE) > /dev/null docker commit build-supervisor-latest $(IMAGE):$(SUPERVISOR_VERSION) > /dev/null
docker rm build-supervisor-latest docker tag $(IMAGE):$(SUPERVISOR_VERSION) $(SUPERVISOR_REGISTRY)/$(IMAGE):$(SUPERVISOR_VERSION)
else else
supervisor-accelerated: supervisor-accelerated:
echo 'Please run make accelerator in resin-buildstep to continue' echo 'Please run make accelerator in resin-buildstep to continue'