fix: test (#339)

* fix: test

* fix: test

* fix: test
This commit is contained in:
Nathan.fooo 2024-02-21 15:05:23 +08:00 committed by GitHub
parent 3ab768fb14
commit d5869742c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: