-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: configure janitor to cleanup aws resources
Signed-off-by: Carlos Salas <[email protected]>
- Loading branch information
1 parent
7384fe9
commit 02a3eff
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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 |