diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 1beb557..e759e39 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -48,6 +48,8 @@ jobs: context: . push: true tags: ${{ secrets.DOCKER_REGISTRY }}/dashboard:${{ github.ref_name }} + env: + NEXT_PUBLIC_THEGRAPH_API_KEY: ${{ secrets.NEXT_PUBLIC_THEGRAPH_API_KEY }} - name: Configure SSH run: | diff --git a/Dockerfile b/Dockerfile index 3e5307f..17aecbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ FROM node:16-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . +ENV NEXT_PUBLIC_THEGRAPH_API_KEY RUN yarn build