Skip to content

Commit

Permalink
Prune Docker images between Docker builds (#2319)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc authored Aug 16, 2024
2 parents aa35aba + 2226651 commit f3c9e9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/next/dev-2313-docker-purge
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#2313: Docker images are pruned after being built and pushed to free up storage space

0 comments on commit f3c9e9d

Please sign in to comment.