mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix(try): reduce image size
This commit is contained in:
parent
50409e5fc4
commit
216a9188a9
2 changed files with 104 additions and 67 deletions
10
.github/workflows/docker_build.yaml
vendored
10
.github/workflows/docker_build.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue