mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-05-18 21:03:30 +02:00
figuring out ci issues (no space left) (#77)
Fixing space issue and at the same time move github actions runner to ubuntu-20.04 from ubuntu-latest (currently 18.04).
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
||||
jobs:
|
||||
review:
|
||||
name: Review code
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
@@ -55,22 +55,21 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build code
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Clean out old builds from disk
|
||||
run: |
|
||||
sudo swapoff -a
|
||||
sudo rm -f /swapfile
|
||||
sudo apt clean
|
||||
df -h / && df -h /mnt
|
||||
sudo apt-get clean -qq
|
||||
sudo apt-get autoclean -qq
|
||||
docker rmi $(docker image ls -aq)
|
||||
df -h
|
||||
df -h / && df -h /mnt
|
||||
|
||||
- name: Install buildah
|
||||
run: |
|
||||
sudo apt-get install -qq -y software-properties-common
|
||||
sudo add-apt-repository -y ppa:projectatomic/ppa
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get -qq -y install buildah
|
||||
|
||||
|
||||
@@ -6,22 +6,21 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install buildah
|
||||
run: |
|
||||
sudo apt-get install -qq -y software-properties-common
|
||||
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
|
||||
df -h / && df -h /mnt
|
||||
sudo apt-get clean -qq
|
||||
sudo apt-get autoclean -qq
|
||||
docker rmi $(docker image ls -aq)
|
||||
df -h
|
||||
df -h / && df -h /mnt
|
||||
- name: Build & push the Docker image
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
@@ -34,7 +33,7 @@ jobs:
|
||||
name: Release
|
||||
needs: build
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
@@ -107,7 +106,6 @@ jobs:
|
||||
- name: Install buildah
|
||||
run: |
|
||||
sudo apt-get install -qq -y software-properties-common
|
||||
sudo add-apt-repository -y ppa:projectatomic/ppa
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get -qq -y install buildah
|
||||
|
||||
|
||||
Reference in New Issue
Block a user