Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

perf: Setup cache on workflows

Smaug6739606989228945
diff --git a/.github/workflows/docker-image-deploy.yml b/.github/workflows/docker-image-deploy.yml
index 31376a18..9e63a337 100644
--- a/.github/workflows/docker-image-deploy.yml
+++ b/.github/workflows/docker-image-deploy.yml
@@ -36,7 +36,8 @@ jobs:
context: ./backend
push: true
platforms: linux/amd64,linux/arm64
- no-cache: true
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:latest
ghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:${{ github.ref_name }}
@@ -47,7 +48,8 @@ jobs:
context: ./frontend
push: true
platforms: linux/amd64,linux/arm64
- no-cache: true
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ steps.repo.outputs.repo_lc }}-frontend:latest
ghcr.io/${{ steps.repo.outputs.repo_lc }}-frontend:${{ github.ref_name }}
diff --git a/.github/workflows/docker-image-release.yml b/.github/workflows/docker-image-release.yml
index ac1d5b13..ba0e34b1 100644
--- a/.github/workflows/docker-image-release.yml
+++ b/.github/workflows/docker-image-release.yml
@@ -36,7 +36,8 @@ jobs:
context: ./backend
push: true
platforms: linux/amd64,linux/arm64
- no-cache: true
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:latest
ghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:${{ github.event.release.tag_name }}
@@ -47,7 +48,8 @@ jobs:
context: ./frontend
push: true
platforms: linux/amd64,linux/arm64
- no-cache: true
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ steps.repo.outputs.repo_lc }}-frontend:latest
ghcr.io/${{ steps.repo.outputs.repo_lc }}-frontend:${{ github.event.release.tag_name }}