Skip to content

Commit

Permalink
fix: test (AppFlowy-IO#339)
Browse files Browse the repository at this point in the history
* fix: test

* fix: test

* fix: test
  • Loading branch information
appflowy authored Feb 21, 2024
1 parent 3ab768f commit d586974
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Build argument for features
ARG FEATURES=""

FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef

WORKDIR /app
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
FEATURES: "disable_access_control"
image: appflowyinc/appflowy_cloud:${BACKEND_VERSION:-latest}

admin_frontend:
Expand Down

0 comments on commit d586974

Please sign in to comment.