diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml new file mode 100644 index 00000000..d4b5b372 --- /dev/null +++ b/.github/workflows/clean.yml @@ -0,0 +1,24 @@ +name: Cleanup Old Images +on: + schedule: + - cron: "15 0 * * 0" # 0015 UTC on Sundays + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + +jobs: + delete-older-than-90: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - name: Delete Images Older Than 90 Days + uses: dataaxiom/ghcr-cleanup-action@v1.0.13 + with: + token: ${{ secrets.GITHUB_TOKEN }} + packages: silverblue-main,kinoite-main,sericea-main,onyx-main,base-main,lazurite-main,vauxite-main + older-than: 90 days + delete-orphaned-images: true + keep-n-tagged: 7 + keep-n-untagged: 7 diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index f33bda1f..becec94b 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -132,7 +132,7 @@ jobs: - name: Get current version id: labels - uses: Wandalen/wretry.action@v3.7.2 + uses: Wandalen/wretry.action@v3.7.3 with: attempt_limit: 3 attempt_delay: 15000 @@ -153,7 +153,7 @@ jobs: echo "SOURCE_IMAGE_VERSION=$ver" >> $GITHUB_ENV - name: Pull Images - uses: Wandalen/wretry.action@v3.7.2 + uses: Wandalen/wretry.action@v3.7.3 with: attempt_limit: 3 attempt_delay: 15000 @@ -227,7 +227,7 @@ jobs: string: ${{ env.IMAGE_REGISTRY }} - name: Push To GHCR - uses: Wandalen/wretry.action@v3.7.2 + uses: Wandalen/wretry.action@v3.7.3 id: push if: github.event_name != 'pull_request' env: diff --git a/packages.json b/packages.json index f2a2961c..4fb9c65b 100644 --- a/packages.json +++ b/packages.json @@ -65,7 +65,6 @@ "kinoite": [ "icoutils", "kate", - "kcron", "kio-admin", "ksshaskpass" ],