From b25850f4037499bbfed6c33e16ebdb1e70e5df45 Mon Sep 17 00:00:00 2001 From: davepuchyr Date: Mon, 9 Nov 2020 17:00:45 +0100 Subject: [PATCH] Add block-metrics docker image (#374) * Add block-metrics docker image * Make environment variable names consistent Co-authored-by: Dave Puchyr --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a720819e..0f52f0c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 @@ -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; @@ -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;