From 02a3effe85548a5063b8974010b3292c7daedc70 Mon Sep 17 00:00:00 2001 From: Carlos Salas Date: Tue, 27 Feb 2024 09:57:07 +0100 Subject: [PATCH] chore: configure janitor to cleanup aws resources Signed-off-by: Carlos Salas --- .github/workflows/janitor.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/janitor.yaml b/.github/workflows/janitor.yaml index 4a956143..76da13e6 100644 --- a/.github/workflows/janitor.yaml +++ b/.github/workflows/janitor.yaml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - janitor: + azure-janitor: name: azure-janitor runs-on: ubuntu-latest steps: @@ -18,4 +18,18 @@ jobs: client-id: ${{ secrets.AZURE_CLIENT_ID}} client-secret: ${{ secrets.AZURE_CLIENT_SECRET}} tenant-id: ${{ secrets.AZURE_TENANT_ID}} - commit: true \ No newline at end of file + commit: true + aws-janitor: + if: success() || failure() + name: aws-janitor + runs-on: ubuntu-latest + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + steps: + - name: Cleanup + uses: rancher-sandbox/aws-janitor@v0.1.0 + with: + regions: eu-west-2 + commit: true + ignore-tag: janitor-ignore