Skip to content

Commit

Permalink
Add block-metrics docker image (#374)
Browse files Browse the repository at this point in the history
* Add block-metrics docker image

* Make environment variable names consistent

Co-authored-by: Dave Puchyr <dave@slim.avaritia.com>
  • Loading branch information
davepuchyr and Dave Puchyr authored Nov 9, 2020
1 parent d7e67c8 commit b25850f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ env:
- VERSION=$(git describe --tags | sed 's/^v//')
- COMMIT=$(git log -1 --format='%H')
- IMAGE_NAME="iov1/iovns:${BUILD_VERSION}"
- FAUCET_IMAGE_NAME="iov1/iovns-faucet:${BUILD_VERSION}"
- IMAGE_NAME_FAUCET="iov1/iovns-faucet:${BUILD_VERSION}"
- IMAGE_NAME_METRICS="iov1/iovns-block-metrics:${BUILD_VERSION}"

script:
- set -eo pipefail
Expand All @@ -60,7 +61,8 @@ script:
./contrib/gitian-build.sh linux ;
mkdir -p ${TRAVIS_BUILD_DIR}/build && tar -zxf $TRAVIS_BUILD_DIR/iovns-build-linux/build/out/iovns-${VERSION}-linux-amd64.tar.gz -C ${TRAVIS_BUILD_DIR}/build ;
docker build --pull --tag ${IMAGE_NAME} . ;
( cd cmd/faucet && make build && docker build --pull --tag ${FAUCET_IMAGE_NAME} . );
( cd cmd/faucet && make build && docker build --pull --tag ${IMAGE_NAME_FAUCET} . );
( cd cmd/block-metrics && make build && docker build --pull --tag ${IMAGE_NAME_METRICS} . );
fi;

if [[ $release_latest == "yes" ]]; then
Expand All @@ -70,6 +72,9 @@ script:

docker tag "iov1/iovns-faucet:${BUILD_VERSION}" "iov1/iovns-faucet:latest" ;
docker push "iov1/iovns-faucet:latest";

docker tag "iov1/iovns-block-metrics:${BUILD_VERSION}" "iov1/iovns-block-metrics:latest" ;
docker push "iov1/iovns-block-metrics:latest";
docker logout;
fi;

Expand All @@ -81,6 +86,8 @@ script:
docker tag "iov1/iovns-faucet:${BUILD_VERSION}" "iov1/iovns-faucet:$TRAVIS_TAG" ;
docker push "iov1/iovns-faucet:$TRAVIS_TAG";

docker tag "iov1/iovns-block-metrics:${BUILD_VERSION}" "iov1/iovns-block-metrics:$TRAVIS_TAG" ;
docker push "iov1/iovns-block-metrics:$TRAVIS_TAG";
docker logout;
fi;
fi;
Expand Down

0 comments on commit b25850f

Please sign in to comment.