Adding doc8 check against rst files
[releng.git] / jjb / opnfv / opnfv-docker.sh
index 0301444..6f0a0c3 100644 (file)
@@ -29,7 +29,7 @@ if [[ ! -z $(docker images | grep $DOCKER_REPO_NAME) ]]; then
 fi
 
 # If we just want to update the latest_stable image
-if [[ [ "$UPDATE_LATEST_STABLE" == "true" ] ]]; then
+if [[ "$UPDATE_LATEST_STABLE" == "true" ]]; then
     echo "Pulling $DOCKER_REPO_NAME:$STABLE_TAG ..."
     docker pull $DOCKER_REPO_NAME:$STABLE_TAG
     if [[ $? -ne 0 ]]; then
@@ -64,6 +64,8 @@ if [[ "$DOCKER_REPO_NAME" == "opnfv/functest" ]]; then
     cd $WORKSPACE/docker
 elif [[ "$DOCKER_REPO_NAME" == "opnfv/yardstick" ]]; then
     cd $WORKSPACE/ci/docker/yardstick-ci
+elif [[ "$DOCKER_REPO_NAME" == "opnfv/storperf" ]]; then
+    cd $WORKSPACE/docker
 else
     echo "ERROR: DOCKER_REPO_NAME parameter not valid: $DOCKER_REPO_NAME"
     exit 1
@@ -81,7 +83,7 @@ echo "Available images are:"
 docker images
 
 # Push image to Dockerhub
-if [ "$PUSH_IMAGE" == "true" ]; then
+if [[ "$PUSH_IMAGE" == "true" ]]; then
     echo "Pushing $DOCKER_REPO_NAME:$DOCKER_TAG to the docker registry..."
     echo "--------------------------------------------------------"
     echo
@@ -90,4 +92,4 @@ if [ "$PUSH_IMAGE" == "true" ]; then
 
     echo "Updating $DOCKER_REPO_NAME:latest to the docker registry..."
     docker push $DOCKER_REPO_NAME:latest
-fi
\ No newline at end of file
+fi