File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,26 @@ if wget -q --spider "$jenkinsImage" &> /dev/null; then
75
75
badges+=( " -${t} [Automated \` update.sh\` : ${n}${t} ]($jenkinsLink )" )
76
76
fi
77
77
78
+ arches=" $( bashbrew cat --format ' {{ range .Entries }}{{ join "\n" .Architectures }}{{ "\n" }}{{ end }}' " https://github.com/docker-library/official-images/raw/master/library/$repo " | sort -u) "
79
+ if [ -n " $arches " ]; then
80
+ archTable=
81
+ i=0
82
+ for arch in $arches ; do
83
+ jenkinsLink=" https://doi-janky.infosiftr.net/job/multiarch/job/$arch /job/$repo "
84
+ jenkinsImage=" $jenkinsLink /badge/icon"
85
+ if wget -q --spider " $jenkinsImage " & > /dev/null; then
86
+ archTable=" ${archTable:- |} [\` $arch \` <br />]($jenkinsLink ) |"
87
+ (( i = (i + 1 ) % 4 )) || : # modulo here needs to match the number of colums used below
88
+ if [ " $i " = 0 ]; then
89
+ archTable+=" ${n} |"
90
+ fi
91
+ fi
92
+ done
93
+ if [ -n " $archTable " ]; then
94
+ badges+=( " ${n} | Build | Status | Badges | (per-arch) |${n} |:-:|:-:|:-:|:-:|${n}${archTable% ${n} |} " )
95
+ fi
96
+ fi
97
+
78
98
if [ " ${# badges[@]} " -gt 0 ]; then
79
99
IFS=$' \n '
80
100
cat << -EOREADME
You can’t perform that action at this time.
0 commit comments