From 252205f899506115c80480190bdd333eedbf633a Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Thu, 7 Nov 2024 10:52:06 -0800 Subject: [PATCH] Update terraform_apply.yaml --- .github/workflows/terraform_apply.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform_apply.yaml b/.github/workflows/terraform_apply.yaml index 12c67b3..44380ba 100644 --- a/.github/workflows/terraform_apply.yaml +++ b/.github/workflows/terraform_apply.yaml @@ -97,7 +97,13 @@ jobs: HTTP_PROXY: http://proxy.tco.census.gov:3128 HTTPS_PROXY: http://proxy.tco.census.gov:3128 NO_PROXY: ".census.gov,169.254.169.254,148.129.*,10.*,172.18.*,172.22.*,172.23.*,172.24.*,172.25.*,.eks.amazonaws.com,.s3.amazonaws.com,.amazonaws.com" - + + - name: s3-cleanup + uses: CSVD/s3-cleanup@main + if: ${{ failure() }} + with: + cache_key: ${{ steps.terraform_init.outputs.s3_upload_path }} + bucket: image-pipeline-assets Apply: # The type of runner that the job will run on runs-on: ["229685449397"] @@ -139,4 +145,9 @@ jobs: HTTPS_PROXY: http://proxy.tco.census.gov:3128 NO_PROXY: ".census.gov,169.254.169.254,148.129.*,10.*,172.18.*,172.22.*,172.23.*,172.24.*,172.25.*,.eks.amazonaws.com,.s3.amazonaws.com,.amazonaws.com" - + - name: s3-cleanup + uses: CSVD/s3-cleanup@main + if: ${{ always() }} + with: + cache_key: ${{ steps.terraform_init.outputs.s3_upload_path }} + bucket: image-pipeline-assets