-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generate documentation cleaning docker images.
- Loading branch information
1 parent
5477059
commit cc47c71
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run clean docker images | ||
|
||
on: | ||
push: | ||
branches: | ||
- test/clean-github-actions-docker-images | ||
jobs: | ||
run-clean-docker-images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Remove unnecessary files | ||
run: | | ||
rm -f *.log | ||
rm -f *.tmp | ||
- name: Clean Docker images and containers | ||
run: | | ||
docker container prune -f | ||
docker image prune -a -f |