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:
Markus Viitamäki
2020-06-13 16:05:04 +02:00
committed by GitHub
parent 558616a87c
commit 557e41283e
2 changed files with 12 additions and 15 deletions
+6 -7
View File
@@ -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 -8
View File
@@ -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