From bcabcfab5183e0d91e4b093f056879c0bc130662 Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Sat, 20 Sep 2025 19:35:31 +0530 Subject: [PATCH] test image build caching --- .gitea/workflows/build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 10d22c8..fcb30a5 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -7,6 +7,12 @@ jobs: steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3 + - uses: actions/cache@v4 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ gitea.sha }} + restore-keys: | + ${{ runner.os }}-buildx- - uses: docker/login-action@v3 with: username: ${{ vars.DOCKERHUB_USERNAME }} @@ -14,8 +20,10 @@ jobs: - uses: docker/build-push-action@v6 with: context: . - push: true + push: false tags: phanipavank/autoltx:latest platforms: linux/arm64, linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max build-args: | TARGETARCH=${{matrix.arch}}