Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,27 @@ name: CI/CD Pipeline
on:
push:
branches:
- master
- diskspace-github-runner-fix

jobs:
build-and-push:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
echo '===== Before ====='
df -h
sudo rm -rf /opt/hostedtoolcache/go
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/lib/google-cloud-sdk
sudo rm -rf /usr/local/julia*
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/share/dotnet
sudo apt-get clean
echo '===== After ====='
df -h
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -33,3 +47,9 @@ jobs:
ghcr.io/${{ github.repository_owner }}/mes:latest
ghcr.io/${{ github.repository_owner }}/mes:${{ github.sha }}
platforms: linux/amd64,linux/arm64

- name: Dump disk usage on failure
if: failure()
run: |
df -h
du -xh / --max-depth=3 2>/dev/null | sort -h | tail -50
Loading