mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-14 07:26:50 +00:00
feat: simplify secret handling in build process
Streamlines the build script by consolidating multiple secret exports into a single command, enhancing maintainability and reducing redundancy.
This commit is contained in:
@@ -16,8 +16,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
FROM build-deps AS build
|
||||
COPY . .
|
||||
RUN export $(cat .env.example) && \
|
||||
export $(cat /run/secrets/SENTRY_AUTH_TOKEN) && \
|
||||
export $(cat /run/secrets/SENTRY_PROJECT) && \
|
||||
export $(cat /run/secrets) && \
|
||||
export DOCKER=true && \
|
||||
pnpm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user