diff options
Diffstat (limited to 'jjb/genesis')
-rw-r--r-- | jjb/genesis/build-docu.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/jjb/genesis/build-docu.sh b/jjb/genesis/build-docu.sh index b3869fcf7..701768bcd 100644 --- a/jjb/genesis/build-docu.sh +++ b/jjb/genesis/build-docu.sh @@ -36,3 +36,22 @@ for file in "${{files[@]}}"; do done +images=() +while read -r -d ''; do + images+=("$REPLY") +done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0) + +for img in "${{images[@]}}"; do + + # uploading found images + echo "uploading $img" + cat "$img" | gsutil cp -L gsoutput.txt - \ + gs://artifacts.opnfv.org/"$project"/"$img" + 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 + rm -f gsoutput.txt + +done + |