File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -174,16 +174,17 @@ def build_images(args):
174
174
args .force , args .skip_tests )
175
175
generate_release_notes (target_version )
176
176
177
+ # Upload to ECR before running tests so that only the exact image which we tested goes to public
178
+ # TODO: Move after tests are stabilized
179
+ if args .target_ecr_repo is not None :
180
+ _push_images_upstream (image_versions , args .region )
181
+
177
182
if not args .skip_tests :
178
183
print (f'Will now run tests against: { image_ids } ' )
179
184
_test_local_images (image_ids , args .target_patch_version )
180
185
else :
181
186
print ('Will skip tests.' )
182
187
183
- # We only upload to ECR once all images are successfully built locally.
184
- if args .target_ecr_repo is not None :
185
- _push_images_upstream (image_versions , args .region )
186
-
187
188
188
189
def _push_images_upstream (image_versions_to_push : list [dict [str , str ]], region : str ):
189
190
print (f'Will now push the images to ECR: { image_versions_to_push } ' )
You can’t perform that action at this time.
0 commit comments