Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Enhance GitHub Actions workflow for server app deployment (#35)

Ylber Gashi147c4230d9af
diff --git a/.github/workflows/publish-server-app.yml b/.github/workflows/publish-server-app.yml
index b2df5e34..aad5a8ae 100644
--- a/.github/workflows/publish-server-app.yml
+++ b/.github/workflows/publish-server-app.yml
@@ -14,7 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -36,6 +40,7 @@ jobs:
context: .
file: ./apps/server/Dockerfile
push: true
+ platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ steps.get_version.outputs.VERSION }}
SHA=${{ github.sha }}
diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile
index 702934f5..473240d8 100644
--- a/apps/server/Dockerfile
+++ b/apps/server/Dockerfile
@@ -7,7 +7,7 @@ ARG SHA
RUN echo "{\"version\":\"$VERSION\",\"sha\":\"$SHA\"}" > build.json
# Copy root workspace files
-COPY ../../package.json ../../package-lock.json ./
+COPY package.json package-lock.json ./
# Copy scripts
COPY ../../scripts scripts