Merge branch 'main' into workspace-add-email

This commit is contained in:
Zack Fu Zi Xiang 2024-02-21 17:25:52 +08:00
commit c936cc0c90
No known key found for this signature in database
GPG Key ID: 39DE600AFEEED522
3 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,8 @@ jobs:
run: |
sed -i '/image: appflowyinc\/appflowy_cloud:/d' docker-compose.yml
sed -i '/image: appflowyinc\/admin_frontend:/d' docker-compose.yml
sed -i 's/FEATURES: "disable_access_control"/FEATURES: ""/g' docker-compose.yml
cat docker-compose.yml
- name: Run Docker-Compose
run: |

View File

@ -1,3 +1,6 @@
# Build argument for features
ARG FEATURES=""
FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef
WORKDIR /app
@ -16,7 +19,7 @@ COPY . .
ENV SQLX_OFFLINE true
# Build the project
RUN cargo build --profile=profiling --features="disable_access_control" --bin appflowy_cloud
RUN cargo build --profile=profiling --features="${FEATURES}" --bin appflowy_cloud
FROM debian:bookworm-slim AS runtime

View File

@ -107,6 +107,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
FEATURES: "disable_access_control"
image: appflowyinc/appflowy_cloud:${BACKEND_VERSION:-latest}
admin_frontend: