diff --git a/.forgejo/workflows/build-deploy.yml b/.forgejo/workflows/build-deploy.yml index e5b1f789..ea22a9ba 100644 --- a/.forgejo/workflows/build-deploy.yml +++ b/.forgejo/workflows/build-deploy.yml @@ -36,6 +36,7 @@ jobs: echo "image=${{ secrets.REGISTRY_URL }}/${{ github.repository }}" >> $GITHUB_OUTPUT echo "sha_tag=${{ secrets.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}" >> $GITHUB_OUTPUT echo "latest_tag=${{ secrets.REGISTRY_URL }}/${{ github.repository }}:latest" >> $GITHUB_OUTPUT + echo "cache_tag=${{ secrets.REGISTRY_URL }}/${{ github.repository }}:buildcache" >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@v6 @@ -46,10 +47,8 @@ jobs: tags: | ${{ steps.meta.outputs.sha_tag }} ${{ steps.meta.outputs.latest_tag }} - cache-from: type=registry,ref=${{ steps.meta.outputs.latest_tag }} - cache-to: type=inline - build-args: | - BUILDKIT_INLINE_CACHE=1 + cache-from: type=registry,ref=${{ steps.meta.outputs.cache_tag }} + cache-to: type=registry,ref=${{ steps.meta.outputs.cache_tag }},mode=max deploy: runs-on: ubuntu-latest