Skip to content

Commit

Permalink
fix: add env varibales from github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
wantedsystem committed Apr 17, 2023
1 parent 3718b5c commit 91d1f3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
release:
types:
- released
env:
L1_PROVIDER_URL: ${{ secrets.L1_PROVIDER_URL }}
L2_PROVIDER_URL: ${{ secrets.L2_PROVIDER_URL }}
L2_RESOLVER_ADDRESS: ${{ secrets.L2_RESOLVER_ADDRESS }}

jobs:
publish:
Expand Down Expand Up @@ -50,6 +46,10 @@ jobs:
context: "{{defaultContext}}:packages/gateway"
push: false
tags: consensys/linea-resolvery:${{ env.DOCKER_TAG }}
env:
L1_PROVIDER_URL: ${{ secrets.L1_PROVIDER_URL }}
L2_PROVIDER_URL: ${{ secrets.L2_PROVIDER_URL }}
L2_RESOLVER_ADDRESS: ${{ secrets.L2_RESOLVER_ADDRESS }}

- name: Docker Image Build and Publish
id: docker-build-publish
Expand Down
3 changes: 3 additions & 0 deletions packages/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ FROM node:16.14.2-alpine
WORKDIR /gateway
COPY --from=build /gateway .
ARG L1_PROVIDER_URL
ENV L1_PROVIDER_URL=$L1_PROVIDER_URL
ARG L2_PROVIDER_URL
ENV L2_PROVIDER_URL=$L2_PROVIDER_URL
ARG L2_RESOLVER_ADDRESS
ENV L2_RESOLVER_ADDRESS=$L2_RESOLVER_ADDRESS
CMD yarn start

0 comments on commit 91d1f3d

Please sign in to comment.