X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopnfvdocs%2Fbuild-upload-docu.sh;h=23e7838be8e02523e157bfa3f622a0bd44a97fd5;hb=2b022e745d5747bbbe93e18fe5e5290dd9a958ac;hp=b7437265d64822ae7c801935e61ea6f158a57158;hpb=b193241afed53c2f321483441f5b301361589bf8;p=releng.git diff --git a/jjb/opnfvdocs/build-upload-docu.sh b/jjb/opnfvdocs/build-upload-docu.sh index b7437265d..23e7838be 100644 --- a/jjb/opnfvdocs/build-upload-docu.sh +++ b/jjb/opnfvdocs/build-upload-docu.sh @@ -40,3 +40,22 @@ for file in "${{files[@]}}"; do done + +images=() + +while read -r -d ''; do + files+=("$REPLY") +done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0) + +for img in "${{images[@]}}"; do + + # uploading found images + echo "uploading $img" + gs://artifacts.opnfv.org/"$project"/"$img" + gsutil setmeta -h "Content-Type:text/html" \ + -h "Cache-Control:private, max-age=0, no-transform" \ + gs://artifacts.opnfv.org/"$project"/"$img" + cat gsoutput.txt + rm -f gsoutput.txt + +done