Fix GitHub Action (no space left on device) (#53)

* Removing swap and cleaning up apt cache.

* List all docker images on machine, in order to do cleanup

* Cleanup old docker images

* Adding disk cleanup for master push
This commit is contained in:
Markus Viitamäki
2020-04-14 21:28:08 +02:00
committed by GitHub
parent cc7d130dfa
commit 758100558a
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -40,6 +40,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Install buildah
run: |
sudo apt-get install -qq -y software-properties-common