From 4cd4572417acbd617a0bf2487d2c8b215202a60f Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Thu, 16 Feb 2017 20:03:13 +0400 Subject: [PATCH] add tag ENV in Dockerfile --- docker/hub/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/hub/Dockerfile b/docker/hub/Dockerfile index f78bbd217..9e8dba9ef 100644 --- a/docker/hub/Dockerfile +++ b/docker/hub/Dockerfile @@ -57,12 +57,13 @@ g++ -v # build parity RUN git clone https://github.com/ethcore/parity && \ cd parity && \ + git checkout $CI_BUILD_REF_NAME git pull && \ cargo build --release --features final && \ ls /build/parity/target/release/parity && \ strip /build/parity/target/release/parity -RUN file /build/parity/target/release/parity&&cp /build/parity/target/release/parity /parity +RUN file /build/parity/target/release/parity&&mkdir -p /parity&&cp /build/parity/target/release/parity /parity #cleanup Docker image RUN rm -rf /root/.cargo&&rm -rf /root/.multirust&&rm -rf /root/.rustup&&rm -rf /build