Skip to content

Commit

Permalink
upgrade actions: checkout docker-login delete-pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
romeroalx committed Jan 31, 2024
1 parent 536a4ee commit 58da18c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-debian-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: |
echo "image-id-lowercase=ghcr.io/${{ github.repository }}/${{ matrix.image-id }}" | tr '[:upper:]' '[:lower:]' >> "$GITHUB_ENV"
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -67,8 +67,10 @@ jobs:
echo "${{ github.repository }}" | awk -F'/' '{print "repo-name="$2}' >> "$GITHUB_ENV"
- name: Purge old images keeping the 5 more recent ones
uses: actions/delete-package-versions@v4
# FIXME: move to tag v5 when available.
uses: actions/delete-package-versions@v5.0.0
with:
package-name: ${{ env.repo-name }}/${{ matrix.image-id }}
package-type: container
min-versions-to-keep: 5
delete-only-untagged-versions: true

0 comments on commit 58da18c

Please sign in to comment.