Skip to content

Commit

Permalink
fix not local path
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Oct 18, 2024
1 parent 16a738a commit 2f6a30a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
set -euxo pipefail

listen_address=
if [[ $TEST_LOCAL_CODEGEN == "true" ]]; then
if [[ $GITHUB_ACTIONS == "true" ]]; then
if [[ ${TEST_LOCAL_CODEGEN:-false} == "true" ]]; then
if [[ ${GITHUB_ACTIONS:-false} == "true" ]]; then
# Codegen address when running test
listen_address="http://172.17.0.1:9000"
else
listen_address="http://host.docker.internal:9000"
fi
else
listen_address= https://codegen-staging.substreams.dev
listen_address="https://codegen-staging.substreams.dev"
fi

substreams init --state-file /app/generator.json --force-download-cwd --codegen-endpoint $listen_address
Expand Down

0 comments on commit 2f6a30a

Please sign in to comment.