From 725c4fb7511f8e3ef3e29423bac43105c840ef74 Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Thu, 15 Aug 2024 11:37:59 +0100 Subject: [PATCH 1/2] add docker image prune -a -f --- .github/workflows/build_docker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build_docker.yaml b/.github/workflows/build_docker.yaml index 2b217742734..f4b0fd576ce 100644 --- a/.github/workflows/build_docker.yaml +++ b/.github/workflows/build_docker.yaml @@ -60,6 +60,10 @@ jobs: tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ubuntu18 labels: ${{ steps.meta.outputs.labels }} + - name: Purge Docker + run: | + docker image prune -a -f + - name: Build and push Rocky8 Docker image uses: docker/build-push-action@v4 with: From 222665150a3835ba0673422fb6f616b5adee187a Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Thu, 15 Aug 2024 12:37:34 +0100 Subject: [PATCH 2/2] add release note --- docs/release_notes/next/dev-2313-docker-purge | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/release_notes/next/dev-2313-docker-purge diff --git a/docs/release_notes/next/dev-2313-docker-purge b/docs/release_notes/next/dev-2313-docker-purge new file mode 100644 index 00000000000..34db5a2a366 --- /dev/null +++ b/docs/release_notes/next/dev-2313-docker-purge @@ -0,0 +1 @@ +#2313: Docker images are pruned after being built and pushed to free up storage space \ No newline at end of file