Skip to content

Commit 5d27fb6

Browse files
committed
Add the seed servers on the CI
1 parent 38d6069 commit 5d27fb6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.gitlab/ci/build_app.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ app-web-image:
3232
--frontend dockerfile.v0 \
3333
--local context=. \
3434
--local dockerfile=./apps/polycentric \
35+
--opt build-arg:EXPO_PUBLIC_POLYCENTRIC_SEED_SERVERS=$EXPO_PUBLIC_POLYCENTRIC_SEED_SERVERS \
3536
--output type=image,name=$CI_REGISTRY_IMAGE/app:$CI_COMMIT_SHA,push=true

apps/polycentric/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ RUN corepack enable && corepack prepare pnpm@10.19.0 --activate
88
FROM base AS build
99
WORKDIR /app
1010

11+
# EXPO_PUBLIC_* env vars are inlined into the bundle at build time, so
12+
# they must be present during `expo export`. Passed in via build-arg.
13+
ARG EXPO_PUBLIC_POLYCENTRIC_SEED_SERVERS
14+
ENV EXPO_PUBLIC_POLYCENTRIC_SEED_SERVERS=$EXPO_PUBLIC_POLYCENTRIC_SEED_SERVERS
15+
1116
COPY .npmrc turbo.jsonc pnpm-lock.yaml pnpm-workspace.yaml package.json ./
1217
COPY apps apps
1318
COPY packages packages

0 commit comments

Comments
 (0)