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"]
|
||||||
12
.github/workflows/affine.yml
vendored
12
.github/workflows/affine.yml
vendored
@@ -57,9 +57,17 @@ jobs:
|
|||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64/v8
|
|
||||||
file: ./.github/deployment/Dockerfile-affine
|
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 }}
|
push: ${{ github.ref == 'refs/heads/master' && true || false }}
|
||||||
tags: ${{ steps.meta_affine.outputs.tags }}
|
tags: ${{ steps.meta_affine.outputs.tags }}
|
||||||
labels: ${{ steps.meta_affine.outputs.labels }}
|
labels: ${{ steps.meta_affine.outputs.labels }}
|
||||||
target: AFFiNE
|
target: AFFiNE
|
||||||
Reference in New Issue
Block a user