2022-03-20 18:12:47 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
name: Delete old container images
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *' # every day at midnight
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
clean-ghcr:
|
|
|
|
name: Cleanup CI containers
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Cleanup CI containers
|
2023-01-08 22:11:23 +00:00
|
|
|
uses: snok/container-retention-policy@6601a342b42bf08909bbd5b48736d4176100365b # v1.5.1
|
2022-03-20 18:12:47 +00:00
|
|
|
with:
|
2022-04-03 16:06:07 +00:00
|
|
|
image-names: hedgedoc-ci
|
2022-03-20 18:12:47 +00:00
|
|
|
cut-off: A day ago UTC
|
|
|
|
account-type: org
|
|
|
|
org-name: ${{ github.repository_owner }}
|
|
|
|
token: ${{ secrets.PAT_IMAGE_CLEANUP }}
|