Run cloud-cleaner Cloud Experience #19894
This file contains hidden or 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
| name: Run cloud-cleaner Cloud Experience | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 * * * *' # every hour | |
| jobs: | |
| cloudx-aws: | |
| name: Cloud Experience AWS account | |
| runs-on: ubuntu-latest | |
| container: | |
| image: quay.io/osbuild/cloud-tools:latest | |
| env: | |
| AWS_REGION: us-east-1 | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_CLOUDX }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_CLOUDX }} | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: dnf install -y python3-pip && pip install -r requirements.txt | |
| - name: Run the cleaning script | |
| run: ./aws.py | |
| cloudx-azure: | |
| name: Cloud Experience Azure account | |
| runs-on: ubuntu-latest | |
| container: | |
| image: quay.io/osbuild/cloud-tools:latest | |
| env: | |
| AZURE_CLIENT_ID: "${{ secrets.AZURE_CLIENT_ID_CLOUDX }}" | |
| AZURE_CLIENT_SECRET: "${{ secrets.AZURE_CLIENT_SECRET_CLOUDX }}" | |
| AZURE_TENANT_ID: "${{ secrets.AZURE_TENANT_ID_CLOUDX }}" | |
| steps: | |
| - name: Install dependencies | |
| run: dnf install -y jq antlr4 python3-antlr4-runtime | |
| - name: Check out the repo | |
| uses: actions/checkout@v3 | |
| - name: Run the cleaning script | |
| run: ./azure.sh |