Skip to content

Commit 1dc2d9a

Browse files
committed
✨ chore: Enhance GitHub Actions Workflow with Disk Space Management
* Added a step to free up disk space in the GitHub Actions workflow, utilizing the `jlumbroso/free-disk-space` action to optimize resource usage during builds. * Updated caching strategy for Docker images to improve build performance by specifying cache-from and cache-to options. These changes aim to streamline the CI/CD process and ensure efficient resource management.
1 parent 1d3a505 commit 1dc2d9a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/images.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ jobs:
2525
image_name: librechat-rag-api-dev-lite
2626

2727
steps:
28+
# Free up disk space
29+
- name: Free Disk Space
30+
uses: jlumbroso/free-disk-space@main
31+
with:
32+
tool-cache: true
33+
android: true
34+
dotnet: true
35+
haskell: true
36+
large-packages: true
37+
docker-images: true
38+
swap-storage: true
39+
2840
# Check out the repository
2941
- name: Checkout
3042
uses: actions/checkout@v4
@@ -57,3 +69,5 @@ jobs:
5769
ghcr.io/${{ github.repository_owner }}/${{ matrix.image_name }}:latest
5870
platforms: linux/amd64,linux/arm64
5971
target: ${{ matrix.target }}
72+
cache-from: type=gha
73+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)