mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-05-28 09:38: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:
@@ -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
|
||||
|
||||
@@ -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