Browse Source

Store version in VERSION file for easy updates

pull/2/head
Luke Childs 7 years ago
parent
commit
822d182bb2
  1. 2
      .travis.yml
  2. 6
      Dockerfile
  3. 1
      VERSION

2
.travis.yml

@ -1,7 +1,7 @@
sudo: required sudo: required
services: services:
- docker - 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: notifications:
email: email:
on_success: never on_success: never

6
Dockerfile

@ -2,11 +2,13 @@ FROM debian:stable-slim
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>" LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
COPY ./bin /usr/local/bin 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 update && \
apt-get install -y --no-install-recommends curl ca-certificates unzip && \ 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 && \ unzip /tmp/prebuilt.zip -d /tmp && \
mv /tmp/vertcoind /usr/local/bin && \ mv /tmp/vertcoind /usr/local/bin && \
apt-get purge -y curl ca-certificates unzip && \ apt-get purge -y curl ca-certificates unzip && \

1
VERSION

@ -0,0 +1 @@
v0.11.1.0
Loading…
Cancel
Save