Skip to content

AWS edge ami cleanup job #2530

AWS edge ami cleanup job

AWS edge ami cleanup job #2530

---
name: AWS edge ami cleanup job
on:
workflow_dispatch:
schedule:
# Run every four hours
- cron: '0 */4 * * *'
jobs:
cleanup-ami:
# Do not run this job on any fork repos
if: github.repository == 'virt-s1/rhel-edge'
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Cleanup aws resources
run: ./tools/aws-ami-cleanup.sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
timeout-minutes: 60