mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
ci: cleanup: Run every 24 hours instead of 6 hours
Resources don't fail to get deleted as often to need to run every 6 hours. Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
parent
f20924db24
commit
eda5d2c623
4
.github/workflows/cleanup-resources.yaml
vendored
4
.github/workflows/cleanup-resources.yaml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Cleanup dangling Azure resources
|
name: Cleanup dangling Azure resources
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 */6 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -27,5 +27,5 @@ jobs:
|
|||||||
- name: Cleanup resources
|
- name: Cleanup resources
|
||||||
env:
|
env:
|
||||||
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}
|
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}
|
||||||
CLEANUP_AFTER_HOURS: 6 # Clean up resources created more than this many hours ago.
|
CLEANUP_AFTER_HOURS: 24 # Clean up resources created more than this many hours ago.
|
||||||
run: python3 tests/cleanup_resources.py
|
run: python3 tests/cleanup_resources.py
|
||||||
|
Loading…
Reference in New Issue
Block a user