ci: merge removal of workflows with stale.yml and remove untagged docker images on release only

This commit is contained in:
lowlighter
2021-11-15 20:42:34 -05:00
parent f3f070b82d
commit 4d464ddf09
3 changed files with 34 additions and 48 deletions

20
.github/workflows/clean.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Clean untagged docker images from ghcr.io
on:
release:
- published
workflow_dispatch:
jobs:
clean:
name: Clean untagged docker images from ghcr.io
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run script
run: ./delete_ghcr_dangling_images.sh lowlighter metrics
working-directory: .github/workflows/maintenance
env:
GITHUB_TOKEN: ${{ secrets.GHCR_BOT_TOKEN }}