Skip to content

Commit

Permalink
try auto delete old packages
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 22, 2024
1 parent f206baa commit 5991488
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/nuxt-to-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,23 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Build and push Docker image
uses: actions/delete-package-versions@v5
with:
# Name of the package.
# Required
package-name: probablyjassin.github.io

# Type of the package. Can be one of docker (v4 or older), container (v5 or newer), maven, npm, nuget, or rubygems.
# Required
package-type: container

# The number of latest versions to keep.
# This cannot be specified with `num-old-versions-to-delete`. By default, `min-versions-to-keep` takes precedence over `num-old-versions-to-delete`.
# When set to 0, all deletable versions will be deleted.
# When set greater than 0, all deletable package versions except the specified number will be deleted.
min-versions-to-keep: 1

# Temp fix for growing cache size
- name: Move cache
run: |
Expand Down

0 comments on commit 5991488

Please sign in to comment.