File tree 2 files changed +1
-5
lines changed
pulumi/python/infrastructure/aws/ecr
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,11 @@ pipeline {
188
188
* Clean up the environment; this includes running the destroy script to remove our pulumi resources and
189
189
* destroy the deployed infrastructure in AWS
190
190
*
191
- * AWS will not remove a registry that contains images, so we do a force removal here; this should ultimately
192
- * be fixed in the code.
193
- *
194
191
* After that completes, we remove the pulumi stack from the project with the find command; this is because
195
192
* we need to delete the stack in each project it's been instantiated in.
196
193
*/
197
194
198
195
sh '''
199
- $WORKSPACE/pulumi/python/venv/bin/aws ecr delete-repository --repository-name ingress-controller-marajenkaws${BUILD_NUMBER} --force
200
196
$WORKSPACE/pulumi/python/runner -p aws -s marajenkaws${BUILD_NUMBER} destroy
201
197
find . -mindepth 2 -maxdepth 6 -type f -name Pulumi.yaml -execdir $WORKSPACE/pulumi/python/venv/bin/pulumi stack rm marajenkaws${BUILD_NUMBER} --force --yes \\ ;
202
198
'''
Original file line number Diff line number Diff line change 8
8
ecr_repo = ecr .Repository (name = f'ingress-controller-{ stack_name } ' ,
9
9
resource_name = f'nginx-ingress-repository-{ stack_name } ' ,
10
10
image_tag_mutability = "MUTABLE" ,
11
- force_delete = False ,
11
+ force_delete = True ,
12
12
tags = {"Project" : project_name , "Stack" : stack_name })
13
13
14
14
pulumi .export ('repository_url' , ecr_repo .repository_url )
You can’t perform that action at this time.
0 commit comments