From f5d14e01d41a79da1433a9f421695a9f1ba8b82a Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Mon, 6 Mar 2017 22:41:09 +0400 Subject: [PATCH] update docker for hub add BUILD_TAG ARG [ci skip] --- docker/hub/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/hub/Dockerfile b/docker/hub/Dockerfile index 8973ed63f..81ec92133 100644 --- a/docker/hub/Dockerfile +++ b/docker/hub/Dockerfile @@ -1,6 +1,10 @@ FROM ubuntu:14.04 MAINTAINER Parity Technologies WORKDIR /build +#ENV for build TAG +ARG BUILD_TAG +ENV BUILD_TAG ${BUILD_TAG:-master} +RUN echo $BUILD_TAG # install tools and dependencies RUN apt-get update && \ apt-get install -y --force-yes --no-install-recommends \ @@ -47,7 +51,7 @@ RUN apt-get update && \ cd /build&&git clone https://github.com/ethcore/parity && \ cd parity && \ git pull&& \ - git checkout $CI_BUILD_REF_NAME && \ + git checkout $BUILD_TAG && \ cargo build --verbose --release --features final && \ #ls /build/parity/target/release/parity && \ strip /build/parity/target/release/parity && \