Skip to content

Commit 82469c5

Browse files
committed
fix: docker build by adding ENVIO_ALCHEMY_API_KEY
1 parent 8fc8cd8 commit 82469c5

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ DATALAYER_HASURA_ADMIN_INTERNAL_ERRORS="true"
2727
ENVIO_POSTGRES_PASSWORD=testing
2828
ENVIO_PG_USER=postgres
2929
ENVIO_PG_DATABASE=envio-dev
30+
ENVIO_ALCHEMY_API_KEY=ALCHEMY_API_KEY
3031

3132
############################################
3233
############### POSTGRES ###################

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
build:
88
name: Run Build
99
runs-on: ubuntu-latest
10+
env:
11+
ENVIO_ALCHEMY_API_KEY: ${{ secrets.ENVIO_ALCHEMY_API_KEY }}
1012

1113
steps:
1214
- name: Check out github repository

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
FROM node:20-slim AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
4+
5+
ARG ENVIO_ALCHEMY_API_KEY
6+
ENV ENVIO_ALCHEMY_API_KEY=${ENVIO_ALCHEMY_API_KEY}
7+
48
RUN npm install -g corepack@latest
59
RUN corepack enable
610

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ services:
112112
build:
113113
context: ./apps/indexer
114114
dockerfile: Dockerfile
115+
args:
116+
ENVIO_ALCHEMY_API_KEY: ${ENVIO_ALCHEMY_API_KEY}
115117
restart: always
116118
depends_on:
117119
indexer-postgres-db:

0 commit comments

Comments
 (0)