Skip to content

Commit

Permalink
fix ordering of arches (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jun 7, 2024
1 parent d241356 commit 11e9a04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dockerhub_doc_config_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ function generate_official_image_arches() {
arches="windows-amd64"
else
# shellcheck disable=SC2046,SC2005,SC1003,SC2086,SC2063
arches=$(echo $(grep ') \\' ${file} | grep -v "*" | sed 's/) \\//g; s/|//g' | sort) | sed 's/ /, /g')
arches=$(echo $(grep ') \\' ${file} | grep -v "*" | sed 's/) \\//g; s/|//g'))
arches=$(echo ${arches} | sed 's/x86_64/amd64/g') # replace x86_64 with amd64
arches=$(echo ${arches} | sed 's/ppc64el/ppc64le/g') # replace ppc64el with ppc64le
arches=$(echo ${arches} | sed 's/arm64/arm64v8/g') # replace arm64 with arm64v8
arches=$(echo ${arches} | sed 's/aarch64/arm64v8/g') # replace aarch64 with arm64v8
arches=$(echo ${arches} | sed 's/armhf/arm32v7/g') # replace armhf with arm32v7
# sort arches alphabetically
arches=$(echo ${arches} | tr ' ' '\n' | sort | tr '\n' ' ' | sed 's/ /, /g' | sed 's/, $//')
fi
}

Expand Down

0 comments on commit 11e9a04

Please sign in to comment.