From 7e2efa7b98072f522f8cc963bcedc7be3f968c6f Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Thu, 22 Jan 2026 11:37:36 +0100 Subject: [PATCH] Build images for PRs, cleanup old versions --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ba1d17..c9b53fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,12 +5,11 @@ permissions: packages: write on: + pull_request: workflow_dispatch: - push: branches: - main - schedule: - cron: 43 2 * * 0 @@ -33,6 +32,7 @@ jobs: with: cache-from: type=gha cache-to: type=gha,mode=max + pull: true load: true tags: build-chromium @@ -65,3 +65,12 @@ jobs: env: DOCKER_BUILD_SUMMARY: false DOCKER_BUILD_RECORD_UPLOAD: false + + - name: Delete potentially remaining, untagged container images + if: github.event_name != 'pull_request' + uses: Chizkiyahu/delete-untagged-ghcr-action@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + package_name: alpine-chromium + owner_type: org + untagged_only: true