Skip to content

Commit 824b550

Browse files
committed
add env variable to the build stage
1 parent 49125a3 commit 824b550

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
build-args: |
4848
NEXT_PUBLIC_POSTHOG_KEY=${{ vars.NEXT_PUBLIC_POSTHOG_KEY }}
4949
NEXT_PUBLIC_URI=${{ vars.NEXT_PUBLIC_URI }}
50+
GRAPHQL_URI=${{ secrets.GRAPHQL_URI }}
5051
GRAPHQL_SECRET_KEY=${{ secrets.GRAPHQL_SECRET_KEY }}
5152
5253
# 4. SSH to droplet and deploy

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ FROM base AS builder
2424
ARG GRAPHQL_SECRET_KEY
2525
ENV GRAPHQL_SECRET_KEY=$GRAPHQL_SECRET_KEY
2626

27+
ARG GRAPHQL_URI
28+
ENV GRAPHQL_URI=$GRAPHQL_URI
29+
2730
WORKDIR /app
2831
COPY --from=deps /app/node_modules ./node_modules
2932
COPY . .

0 commit comments

Comments
 (0)