Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: arm64 images

DarkSky7211dd026f0f
diff --git a/.github/deployment/Dockerfile-affine-multiplatform b/.github/deployment/Dockerfile-affine-multiplatform
new file mode 100644
index 0000000000..a794d7085c
--- /dev/null
+++ b/.github/deployment/Dockerfile-affine-multiplatform
@@ -0,0 +1,11 @@
+FROM ghcr.io/toeverything/AFFiNE:relocate as relocate
+
+# =============
+# AFFiNE image
+# =============
+FROM caddy:2.4.6-alpine as AFFiNE
+WORKDIR /app
+COPY --from=relocate /app .
+
+EXPOSE 3000
+CMD ["caddy", "run"]
diff --git a/.github/workflows/affine.yml b/.github/workflows/affine.yml
index 6ff463c6d2..2de1b651ba 100644
--- a/.github/workflows/affine.yml
+++ b/.github/workflows/affine.yml
@@ -57,9 +57,17 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
- platforms: linux/amd64,linux/arm64/v8
file: ./.github/deployment/Dockerfile-affine
+ tags: relocate
+ target: AFFiNE
+
+ - name: Build and push Docker image (AFFINE-Local)
+ uses: docker/build-push-action@v3
+ with:
+ context: .
+ platforms: linux/amd64,linux/arm64/v8
+ file: ./.github/deployment/Dockerfile-affine-multiplatform
push: ${{ github.ref == 'refs/heads/master' && true || false }}
tags: ${{ steps.meta_affine.outputs.tags }}
labels: ${{ steps.meta_affine.outputs.labels }}
- target: AFFiNE
+ target: AFFiNE
\ No newline at end of file