mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-07 14:03:33 +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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- 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
|
- name: Install buildah
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -qq -y software-properties-common
|
sudo apt-get install -qq -y software-properties-common
|
||||||
|
|||||||
@@ -14,6 +14,13 @@ jobs:
|
|||||||
sudo add-apt-repository -y ppa:projectatomic/ppa
|
sudo add-apt-repository -y ppa:projectatomic/ppa
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get -qq -y install buildah
|
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
|
- name: Build & push the Docker image
|
||||||
env:
|
env:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user