Skip to content

Commit

Permalink
chore: delete old package versions in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Aug 6, 2024
1 parent ea7f725 commit 1c9b3b7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

# Delete old package versions
# https://github.com/actions/delete-package-versions
- name: Delete old package versions
uses: actions/delete-package-versions@v5
with:
package-name: ${{ env.IMAGE_NAME }}
package-type: 'container'
num-old-versions-to-delete: 3

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
Expand All @@ -53,14 +62,6 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Delete old package versions
# https://github.com/actions/delete-package-versions
- name: Delete old package versions
uses: actions/delete-package-versions@v5
with:
package-name: 'hikka-next'
package-type: 'container'

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
Expand Down

0 comments on commit 1c9b3b7

Please sign in to comment.