Skip to content

Commit

Permalink
chore: use build args on docker for thegraph api key
Browse files Browse the repository at this point in the history
  • Loading branch information
jycssu-com committed Jun 11, 2024
1 parent 0ebf133 commit f7e7568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/dashboard:${{ github.ref_name }}
build-args: |
'NEXT_PUBLIC_THEGRAPH_API_KEY=${{ secrets.NEXT_PUBLIC_THEGRAPH_API_KEY }}'
env:
NEXT_PUBLIC_THEGRAPH_API_KEY: ${{ secrets.NEXT_PUBLIC_THEGRAPH_API_KEY }}

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ FROM node:16-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ARG NEXT_PUBLIC_THEGRAPH_API_KEY
ENV NEXT_PUBLIC_THEGRAPH_API_KEY ${NEXT_PUBLIC_THEGRAPH_API_KEY}

RUN yarn build

Expand Down

0 comments on commit f7e7568

Please sign in to comment.