From 822d182bb22479d1ee9097659a36fb3e51d785b4 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 18 Sep 2017 10:47:56 +0100 Subject: [PATCH] Store version in VERSION file for easy updates --- .travis.yml | 2 +- Dockerfile | 6 ++++-- VERSION | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 VERSION diff --git a/.travis.yml b/.travis.yml index 723b68d..239a327 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ sudo: required services: - docker -script: docker build -t vertcoind . && (docker run vertcoind -version; docker run vertcoind -version | grep -q "Vertcoin Core") +script: docker build -t vertcoind . && ( docker run vertcoind -version | tee /dev/stderr | grep -q $(cat VERSION) ) 2>&1 notifications: email: on_success: never diff --git a/Dockerfile b/Dockerfile index b7ddaaa..f5bd3e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,13 @@ FROM debian:stable-slim LABEL maintainer="Luke Childs " COPY ./bin /usr/local/bin +COPY ./VERSION /tmp -RUN chmod a+x /usr/local/bin/* && \ +RUN VERSION=`cat /tmp/VERSION` && \ + chmod a+x /usr/local/bin/* && \ apt-get update && \ apt-get install -y --no-install-recommends curl ca-certificates unzip && \ - curl -L https://github.com/vertcoin/vertcoin/releases/download/v0.11.1.0/vertcoin-v0.11.1.0-linux-64bit.zip --output /tmp/prebuilt.zip && \ + curl -L https://github.com/vertcoin/vertcoin/releases/download/$VERSION/vertcoin-$VERSION-linux-64bit.zip --output /tmp/prebuilt.zip && \ unzip /tmp/prebuilt.zip -d /tmp && \ mv /tmp/vertcoind /usr/local/bin && \ apt-get purge -y curl ca-certificates unzip && \ diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..39f08ac --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +v0.11.1.0