Skip to content

Commit

Permalink
Merge pull request #413 from salasberryfin/e2e-configure-aws-janitor
Browse files Browse the repository at this point in the history
🌱 chore: configure janitor to cleanup aws resources
  • Loading branch information
richardcase authored Mar 5, 2024
2 parents 1d4de3b + 02a3eff commit 94e45a0
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/[email protected]
with:
regions: eu-west-2
commit: true
ignore-tag: janitor-ignore

0 comments on commit 94e45a0

Please sign in to comment.