diff --git a/build.sh b/build.sh index fc687c3..5089324 100755 --- a/build.sh +++ b/build.sh @@ -23,10 +23,14 @@ docker version gox --osarch="linux/386" -ldflags "$GO_LDFLAGS" -output "dist/rethinkdb_exporter" echo "Build Docker images" + +echo "docker login" +docker login -u $DOCKER_USER -p $DOCKER_PASS +echo "docker login done" + docker build --rm=false -t "21zoo/rethinkdb_exporter:$CIRCLE_TAG" . docker build --rm=false -t "21zoo/rethinkdb_exporter:latest" . -docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS docker push "21zoo/rethinkdb_exporter:latest" docker push "21zoo/rethinkdb_exporter:$CIRCLE_TAG"