mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-01 11:28:27 +02:00
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:
@@ -14,6 +14,13 @@ jobs:
|
||||
sudo add-apt-repository -y ppa:projectatomic/ppa
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get -qq -y install buildah
|
||||
- name: free disk space
|
||||
run: |
|
||||
sudo swapoff -a
|
||||
sudo rm -f /swapfile
|
||||
sudo apt clean
|
||||
docker rmi $(docker image ls -aq)
|
||||
df -h
|
||||
- name: Build & push the Docker image
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
|
||||
Reference in New Issue
Block a user