File tree Expand file tree Collapse file tree 4 files changed +25
-11
lines changed Expand file tree Collapse file tree 4 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ set -o pipefail
16
16
17
17
source ./common_functions.sh
18
18
19
- # Cleanup any old containers and images
20
- cleanup_images
21
-
22
19
for ver in ${supported_versions}
23
20
do
21
+ # Cleanup any old containers and images
22
+ cleanup_images
23
+ cleanup_manifest
24
+
24
25
# Remove any temporary files
25
26
rm -f hotspot_shasums_latest.sh openj9_shasums_latest.sh push_commands.sh
26
27
66
67
echo " test_tags" > ${test_image_types_file}
67
68
./test_multiarch.sh ${ver}
68
69
done
70
+
71
+ # Cleanup any old containers and images
72
+ cleanup_images
73
+ cleanup_manifest
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ function cleanup_images() {
135
135
docker rm $( docker ps -a | grep " Exited" | awk ' { print $1 }' ) 2> /dev/null
136
136
137
137
# Delete any old images for our target_repo on localhost.
138
- docker rmi -f $( docker images | grep -e " ${target_repo} " | awk ' { print $3 }' | sort | uniq) 2> /dev/null
138
+ docker rmi -f $( docker images | grep -e " adoptopenjdk " | awk ' { print $3 }' | sort | uniq) 2> /dev/null
139
139
}
140
140
141
141
function cleanup_manifest() {
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ set -o pipefail
16
16
17
17
source ./common_functions.sh
18
18
19
- # Cleanup any old containers and images
20
- cleanup_images
21
-
22
19
for ver in ${supported_versions}
23
20
do
21
+ # Cleanup any old containers and images
22
+ cleanup_images
23
+ cleanup_manifest
24
+
24
25
# Remove any temporary files
25
26
rm -f hotspot_shasums_latest.sh openj9_shasums_latest.sh push_commands.sh manifest_commands.sh
26
27
41
42
exit 1;
42
43
fi
43
44
done
45
+
46
+ # Cleanup any old containers and images
47
+ cleanup_images
48
+ cleanup_manifest
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ set -o pipefail
16
16
17
17
source ./common_functions.sh
18
18
19
- # Cleanup any old containers, images and manifest entries.
20
- cleanup_images
21
- cleanup_manifest
22
-
23
19
for ver in ${supported_versions}
24
20
do
21
+ # Cleanup any old containers, images and manifest entries.
22
+ cleanup_images
23
+ cleanup_manifest
24
+
25
25
# Remove any temporary files
26
26
rm -f hotspot_shasums_latest.sh openj9_shasums_latest.sh manifest_commands.sh
27
27
67
67
cp ${test_image_types_all_file} ${test_image_types_file}
68
68
./test_multiarch.sh ${ver}
69
69
done
70
+
71
+ # Cleanup any old containers, images and manifest entries.
72
+ cleanup_images
73
+ cleanup_manifest
You can’t perform that action at this time.
0 commit comments