Skip to content

Commit

Permalink
docker: add arch to image tag
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Aug 22, 2024
1 parent 0c94f6f commit fe4c560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/DockerHelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ _setup() {
esac
imageName="${IMAGE_NAME_OVERRIDE:-"${org}/flow-${os}-${target}"}"
if [[ "${tag}" != "" ]]; then
imageTag="${tag}"
imageTag="${tag}-$(uname -m)"
else
imageTag=$(./etc/DockerTag.sh -dev)
fi
Expand Down
5 changes: 3 additions & 2 deletions etc/DockerTag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ if [[ "$@" == "-dev" ]]; then
"./tools/OpenROAD/etc/DockerHelper.sh"
"./tools/OpenROAD/etc/DockerTag.sh"
)
cat "${file_list[@]}" | sha256sum | awk '{print substr($1, 1, 6)}'
ret=$(cat "${file_list[@]}" | sha256sum | awk '{print substr($1, 1, 6)}')
elif [[ "$@" == "-master" ]]; then
git describe
ret=$(git describe)
else
echo "Usage: $0 {-dev|-master}"
exit 1
fi
echo "${ret}-$(uname -m)"

0 comments on commit fe4c560

Please sign in to comment.