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.

Init: new docker compose ci for image build

Smaug67393af5ad129212
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
new file mode 100644
index 00000000..a0f60983
--- /dev/null
+++ b/.github/workflows/docker-image.yml
@@ -0,0 +1,43 @@
+name: Build and Publish Docker Images
+
+on:
+ push:
+ branches: [feature/docker-image-ci]
+
+jobs:
+ build-and-push:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Log in to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ # Build and push BACKEND
+ - name: Build and push backend image
+ uses: docker/build-push-action@v6
+ with:
+ context: ./backend
+ push: true
+ tags: |
+ ghcr.io/${{ github.repository }}-backend:latest
+ ghcr.io/${{ github.repository }}-backend:${{ github.ref_name }}
+
+ # Build and push FRONTEND
+ - name: Build and push frontend image
+ uses: docker/build-push-action@v6
+ with:
+ context: ./frontend
+ push: true
+ tags: |
+ ghcr.io/${{ github.repository }}-frontend:latest
+ ghcr.io/${{ github.repository }}-frontend:${{ github.ref_name }}