@@ -78,23 +78,29 @@ jobs:
78
78
"jupyter/datascience/ubi9-python-3.9/runtime-images/datascience-ubi9-py39.json"
79
79
"jupyter/datascience/ubi9-python-3.9/runtime-images/pytorch-ubi9-py39.json"
80
80
"jupyter/datascience/ubi9-python-3.9/runtime-images/tensorflow-ubi9-py39.json"
81
- "jupyter/datascience/ubi9-python-3.9/runtime-images/ubi9-py39.json")
81
+ "jupyter/datascience/ubi9-python-3.9/runtime-images/ubi9-py39.json"
82
+ "jupyter/datascience/ubi9-python-3.9/runtime-images/rocm-tensorflow-ubi9-py39.json"
83
+ "jupyter/datascience/ubi9-python-3.9/runtime-images/rocm-pytorch-ubi9-py39.json")
82
84
83
85
for ((i=0;i<${#PATHS[@]};++i)); do
84
86
path=${PATHS[$i]}
85
87
img=$(cat ${path} | jq -r '.metadata.image_name')
86
88
name=$(echo "$path" | sed 's#.*runtime-images/\(.*\)-py.*#\1#')
87
89
py_version=$(echo "$path" | grep -o 'python-[0-9]\.[0-9]')
88
90
# Handling specific cases
89
- if [[ $name == * tensorflow* ]]; then
91
+ if [[ $name == tensorflow* ]]; then
90
92
name="cuda-$name"
91
93
elif [[ $name == ubi* ]]; then
92
94
name="minimal-$name"
93
95
fi
94
96
registry=$(echo $img | cut -d '@' -f1)
95
97
regex="^runtime-$name-$py_version-${{ env.RELEASE_VERSION_N}}-\d+-${{ steps.hash-n.outputs.HASH_N }}\$"
96
- echo "CHECKING: " $regex
97
98
latest_tag=$(skopeo inspect docker://$img | jq -r --arg regex "$regex" '.RepoTags | map(select(. | test($regex))) | .[0]')
99
+ echo "CHECKING: " $latest_tag
100
+ if [[ -z "$latest_tag" ]]; then
101
+ echo "No matching tag found"
102
+ exit 1
103
+ fi
98
104
digest=$(skopeo inspect docker://$registry:$latest_tag | jq .Digest | tr -d '"')
99
105
output=$registry@$digest
100
106
echo "NEW: " $output
0 commit comments