mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: arm64 images
This commit is contained in:
11
.github/deployment/Dockerfile-affine-multiplatform
vendored
Normal file
11
.github/deployment/Dockerfile-affine-multiplatform
vendored
Normal file
@@ -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"]
|
||||
10
.github/workflows/affine.yml
vendored
10
.github/workflows/affine.yml
vendored
@@ -57,8 +57,16 @@ 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 }}
|
||||
|
||||
Reference in New Issue
Block a user