chore: fix build args (#346)

* chore: fix build args

* chore: fix build args
This commit is contained in:
Nathan.fooo 2024-02-23 15:50:37 +08:00 committed by GitHub
parent b71e443d3f
commit 66b7637ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
provenance: false
build-args: |
FEATURES=disable_access_control
FEATURES="disable_access_control"
- name: Logout from Docker Hub
if: always()

View File

@ -1,8 +1,8 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef
# Build argument for features
ARG FEATURES=""
FROM lukemathwalker/cargo-chef:latest-rust-1.75.0 as chef
WORKDIR /app
RUN apt update && apt install lld clang -y
@ -19,7 +19,8 @@ COPY . .
ENV SQLX_OFFLINE true
# Build the project
RUN cargo build --profile=profiling --features="${FEATURES}" --bin appflowy_cloud
RUN echo "Building with features: ${FEATURES}"
RUN cargo build --profile=profiling --features=${FEATURES} --bin appflowy_cloud
FROM debian:bookworm-slim AS runtime