Skip to content

Kubeapps Custodian Rules #848

Kubeapps Custodian Rules

Kubeapps Custodian Rules #848

# Copyright 2022 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0
---
name: Kubeapps Custodian Rules
on:
schedule:
- cron: "0 8 * * *"
env:
GOOGLE_APPLICATION_CREDENTIALS: key.json
GCLOUD_CUSTODIAN_KEY: ${{ secrets.GCLOUD_CUSTODIAN_KEY }}
CLOUDSDK_CORE_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
jobs:
remove-unattached-disks:
if: github.repository == 'vmware-tanzu/kubeapps'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gscho/setup-cloud-custodian@v1
with:
include-gcp: true
- run: echo $GCLOUD_CUSTODIAN_KEY > $GOOGLE_APPLICATION_CREDENTIALS
- run: custodian run -s out .github/workflows/custodian-rules/remove-unattached-disks.yaml