mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-08-13 05:14:37 +02:00
Delete untagged images (#151)
This change to the pipline deletes untagged / overwritten tags once a week to keep the memory consumption in the GH registry reasonable.
This commit is contained in:
18
.github/workflows/maintenance.yaml
vendored
Normal file
18
.github/workflows/maintenance.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Auto Maintenance Cycle
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: 30 7 * * 1
|
||||
|
||||
jobs:
|
||||
delete_all_untagged:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
name: [ingest, data-transformation, web-server]
|
||||
steps:
|
||||
- name: purge packages
|
||||
uses: dylanratcliffe/delete-untagged-containers@main
|
||||
with:
|
||||
package_name: ${{ github.event.repository.name }}/${{ matrix.name }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
Reference in New Issue
Block a user