Skip to content

Commit

Permalink
chore: configure janitor to cleanup aws resources
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
  • Loading branch information
salasberryfin committed Mar 4, 2024
1 parent 7384fe9 commit 02a3eff
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/janitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
janitor:
azure-janitor:
name: azure-janitor
runs-on: ubuntu-latest
steps:
Expand All @@ -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
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

0 comments on commit 02a3eff

Please sign in to comment.