Skip to content

Commit

Permalink
build(ci): cleanup docker images in gha runner before building new im…
Browse files Browse the repository at this point in the history
…ages

Follow up to #2711 and #2727

Github keeps some image cache in the GHA runners which keeps around
base containers with vulnerabilities.

We can't use --pull because we use local-built tools image.
  • Loading branch information
hairyhum committed Mar 11, 2024
1 parent 79fb8cc commit 745c51a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- run: sudo rm -rf /usr/share/dotnet
- run: sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- run: docker image prune -af
- run: make release-snapshot
- run: ./build/push_images.sh

0 comments on commit 745c51a

Please sign in to comment.