mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-06 01:47:27 +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:
parent
5e716801c0
commit
9cc0654f56
11
.github/workflows/delete-branch.yaml
vendored
11
.github/workflows/delete-branch.yaml
vendored
@ -1,11 +0,0 @@
|
||||
name: Branch Deleted
|
||||
on: delete
|
||||
jobs:
|
||||
delete:
|
||||
if: github.event.ref_type == 'branch'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clean up
|
||||
run: |
|
||||
echo "Clean up for branch ${{ github.event.ref }}"
|
||||
# uses: bots-house/ghcr-delete-image-action@v1.1.0
|
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 }}
|
Loading…
x
Reference in New Issue
Block a user