Skip to content

Commit 595cff8

Browse files
committed
docker: remove cleanup step from build workflow
Removed the cleanup step for GitHub Packages images from the Docker build workflow to streamline the process. Signed-off-by: Chiho Sin <[email protected]>
1 parent e3f30df commit 595cff8

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/docker_build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,3 @@ jobs:
8585
labels: ${{ steps.meta.outputs.labels }}
8686
platforms: ${{ inputs.platform }}
8787
target: ${{ inputs.port }}
88-
89-
- name: Cleanup GitHub Packages images
90-
if: ${{ inputs.push }}
91-
uses: dataaxiom/ghcr-cleanup-action@v1
92-
with:
93-
delete-ghost-images: true
94-
delete-untagged: true
95-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/on_push.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ permissions:
1616
attestations: write
1717

1818
jobs:
19-
docker-platforms:
19+
build:
20+
name: Build Docker Images
2021
strategy:
2122
fail-fast: false
2223
matrix:
@@ -26,4 +27,16 @@ jobs:
2627
uses: ./.github/workflows/docker_manifest.yml
2728
with:
2829
port: ${{ matrix.port }}
29-
secrets: inherit
30+
secrets: inherit
31+
32+
clean:
33+
name: Cleanup Docker Images
34+
needs: build
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Cleanup GitHub Packages images
38+
uses: dataaxiom/ghcr-cleanup-action@v1
39+
with:
40+
delete-ghost-images: true
41+
delete-untagged: true
42+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)