revert: "chore: add cleaning workflow ci"

This reverts commit 8dcf500d79.
This commit is contained in:
Alexander Navarro 2024-11-06 08:44:10 -03:00
parent 8dcf500d79
commit 3f8e44008c
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5

View file

@ -1,25 +0,0 @@
name: Clean container registry
on:
push:
workflow_dispatch:
jobs:
clean:
runs-on: docker
strategy:
matrix:
box:
- "devbox"
steps:
- name: Get timestamp
id: timestamp
run: |
echo "year=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
echo "current_month=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
- uses: actions/delete-package-versions@v5
with:
package-name: ${{matrix.box}}
package-type: 'container'
min-version-to-keep: 3
# ignore latest and this month uploads
ignore-versions: '^(?:latest)$'
token: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}