update Dockerfile for hub

add BUILD_TAG ARG
[ci skip]
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-03-06 22:46:35 +04:00 committed by GitHub
parent 38884cdf82
commit 344b5b120f

View File

@ -1,6 +1,10 @@
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER Parity Technologies <devops@parity.io> MAINTAINER Parity Technologies <devops@parity.io>
WORKDIR /build WORKDIR /build
#ENV for build TAG
ARG BUILD_TAG
ENV BUILD_TAG ${BUILD_TAG:-master}
RUN echo $BUILD_TAG
# install tools and dependencies # install tools and dependencies
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --force-yes --no-install-recommends \ 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 /build&&git clone https://github.com/ethcore/parity && \
cd parity && \ cd parity && \
git pull&& \ git pull&& \
git checkout $CI_BUILD_REF_NAME && \ git checkout $BUILD_TAG && \
cargo build --verbose --release --features final && \ cargo build --verbose --release --features final && \
#ls /build/parity/target/release/parity && \ #ls /build/parity/target/release/parity && \
strip /build/parity/target/release/parity && \ strip /build/parity/target/release/parity && \