mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 07:08:40 -04:00
fix(backend): Add directory filter to backend workflows
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e72afeb427
commit
31381b2cf0
4 changed files with 122 additions and 4 deletions
24
.github/workflows/backend-docker-cleanup.yml
vendored
Normal file
24
.github/workflows/backend-docker-cleanup.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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
|
||||
uses: snok/container-retention-policy@v1
|
||||
with:
|
||||
image-names: hedgedoc-ci
|
||||
cut-off: A day ago UTC
|
||||
account-type: org
|
||||
org-name: ${{ github.repository_owner }}
|
||||
token: ${{ secrets.PAT_IMAGE_CLEANUP }}
|
Loading…
Add table
Add a link
Reference in a new issue