added cleanup
This commit is contained in:
parent
177d1972b2
commit
992615a42f
24
.gitea/workflows/cleanup_registry.yaml
Normal file
24
.gitea/workflows/cleanup_registry.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
name: Cleanup old Docker images
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 6 * * *' # Täglich um 6 Uhr
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install crane (OCI Registry tool)
|
||||
run: |
|
||||
curl -LO https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_Linux_x86_64.tar.gz
|
||||
tar -xzf go-containerregistry_Linux_x86_64.tar.gz
|
||||
chmod +x crane
|
||||
sudo mv crane /usr/local/bin/
|
||||
|
||||
- name: List Docker tags
|
||||
run: |
|
||||
crane ls git.0day.agency/${{ secrets.REGISTRY_USERNAME }}/novelai-discord-bot \
|
||||
--username ${{ secrets.REGISTRY_USERNAME }} \
|
||||
--password ${{ secrets.REGISTRY_TOKEN }}
|
||||
Loading…
x
Reference in New Issue
Block a user