Content-Type:image/jpeg in build-upload-docu.sh for images
[releng.git] / jjb / opnfvdocs / build-upload-docu.sh
index c4c7811..561ccb1 100644 (file)
@@ -49,9 +49,9 @@ for img in "${{images[@]}}"; do
 
        # uploading found images
        echo "uploading $img"
-        echo "$img" | gsutil cp -L gsoutput.txt - \
+        cat "$img" | gsutil cp -L gsoutput.txt - \
         gs://artifacts.opnfv.org/"$project"/"$img"
-        gsutil setmeta -h "Content-Type:text/html" \
+        gsutil setmeta -h "Content-Type:image/jpeg" \
                         -h "Cache-Control:private, max-age=0, no-transform" \
                         gs://artifacts.opnfv.org/"$project"/"$img"
         cat gsoutput.txt