fix(try): reduce image size

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-08 23:13:42 -08:00
parent 50409e5fc4
commit 216a9188a9
2 changed files with 104 additions and 67 deletions

View file

@ -138,6 +138,14 @@ jobs:
type=raw,value=${{ needs.tag_release.outputs.new_tag }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event.inputs.branch == github.event.repository.default_branch }}
- name: Free up disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
docker system prune -af
- name: Build and push SurfSense image
uses: docker/build-push-action@v5
with:
@ -146,6 +154,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max