File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ config_setting(
2424 name = "is_linux_arm" ,
2525 constraint_values = [
2626 "@platforms//os:linux" ,
27- "@platforms//cpu:x86_64 " ,
27+ "@platforms//cpu:arm " ,
2828 ],
2929)
3030
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ int main(int argc, char** argv) {
206206 if (display_version) {
207207 std::cout << " TensorFlow ModelServer: 1.15.0" << " \n "
208208 << " TensorFlow Library: " << TF_Version () << " \n "
209- << " TFS_ARM Rev: 1 (" << cBUILD_SCM_REV_STAMP << " )\n " ;
209+ << " TFS_ARM Rev: 2 (" << cBUILD_SCM_REV_STAMP << " )\n " ;
210210 return 0 ;
211211 }
212212
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ platform=$2
2525os=" $( echo $platform | cut -d ' _' -f1) "
2626arch=" $( echo $platform | cut -d ' _' -f2) "
2727
28+ if [ $arch = " amd64" ]; then
29+ exit 0
30+ fi
31+
2832mkdir -p $work_dir
2933cd $work_dir
3034docker save $image -o image.tar
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ publish_platform_bundle() {
3939 # push platform image bundle
4040 for platform in $platforms ; do
4141 # quick and dirty image arch metadata fix for arm images
42- if [ $platform = " linux_arm64" ] || [ $platform = " linux_arm" ]; then
43- tensorflow_model_server/tools/ci/image_arch_fix.sh $manifest -$platform $platform
44- fi
42+ tensorflow_model_server/tools/ci/image_arch_fix.sh $manifest -$platform $platform
4543 docker push $manifest -$platform
4644 done
4745 # create and push manifest for arch image bundle
@@ -70,7 +68,10 @@ export DOCKER_CLI_EXPERIMENTAL=enabled
7068# individual images
7169
7270for platform in $PROJECT_PLATFORMS ; do
73- docker push " $PROJECT_REGISTRY_PREFIX :$UPSTREAM_TFS_VERSION -$platform "
71+ image_prefix=$PROJECT_REGISTRY_PREFIX :$UPSTREAM_TFS_VERSION
72+ # quick and dirty image arch metadata fix for arm images
73+ tensorflow_model_server/tools/ci/image_arch_fix.sh $image_prefix -$platform $platform
74+ docker push " $image_prefix -$platform "
7475done
7576
7677# aliases and manifest lists
You can’t perform that action at this time.
0 commit comments