Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add NODE_ENV in CI #224

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/linea-ccip-gateway-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
L2_PROVIDER_URL=https://linea-sepolia.infura.io/v3/${{ secrets.NEXT_PUBLIC_INFURA_KEY }}
L1_ROLLUP_ADDRESS=${{ vars.L1_TESTNET_ROLLUP_ADDRESS }}
L2_CHAIN_ID=${{ vars.L2_TESTNET_CHAIN_ID }}
NODE_ENV=${{ vars.CCIP_GATEWAY_TESTNET_NODE_ENV }}
file: ./packages/linea-ccip-gateway/Dockerfile
context: ./
push: true
Expand All @@ -77,6 +78,7 @@ jobs:
L2_PROVIDER_URL=https://linea-mainnet.infura.io/v3/${{ secrets.NEXT_PUBLIC_INFURA_KEY }}
L1_ROLLUP_ADDRESS=${{ vars.L1_MAINNET_ROLLUP_ADDRESS }}
L2_CHAIN_ID=${{ vars.L2_MAINNET_CHAIN_ID }}
NODE_ENV=${{ vars.CCIP_GATEWAY_MAINNET_NODE_ENV }}
file: ./packages/linea-ccip-gateway/Dockerfile
context: ./
push: true
Expand Down
2 changes: 2 additions & 0 deletions packages/linea-ccip-gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ ARG L1_PROVIDER_URL
ARG L2_PROVIDER_URL
ARG L1_ROLLUP_ADDRESS
ARG L2_CHAIN_ID
ARG NODE_ENV

ENV L1_PROVIDER_URL=$L1_PROVIDER_URL
ENV L2_PROVIDER_URL=$L2_PROVIDER_URL
ENV L1_ROLLUP_ADDRESS=$L1_ROLLUP_ADDRESS
ENV L2_CHAIN_ID=$L2_CHAIN_ID
ENV NODE_ENV=$NODE_ENV

COPY packages/linea-ccip-gateway ./packages/linea-ccip-gateway
COPY packages/linea-state-verifier ./packages/linea-state-verifier
Expand Down
2 changes: 1 addition & 1 deletion packages/linea-ccip-gateway/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function logError(error: any, ...objects: any[]) {
}

export function logDebug(message: string, ...objects: any[]) {
if (process.env.NODE_ENV === "debug") {
if (process.env.NODE_ENV === "development") {
const logObject = {
message,
details: objects,
Expand Down
Loading