Skip to content

Commit 823537d

Browse files
authored
fix: build the testnet indexer with testnet provider metadata (#123)
The single-instance deploy (#87) always ran `yarn bootstrap`, which aggregates the mainnet providers/ directory, even when ENV is testnet. So the testnet indexer serves mainnet provider names against testnet provider ids: provider 50 shows as "Staker Space" instead of TestInc, and the providers in providers-testnet/ never appear on the testnet dashboard. Run `yarn bootstrap-testnet` for testnet, the same switch bootstrap.sh's ECS deploy path already makes. The testnet indexer has to be redeployed to pick this up.
1 parent d4244f6 commit 823537d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/deploy-indexer.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ jobs:
7474
working-directory: atp-indexer
7575
run: |
7676
yarn install --frozen-lockfile
77-
yarn bootstrap
77+
# Provider metadata is per network: testnet reads providers-testnet/, prod reads providers/.
78+
# Same switch as bootstrap.sh's ECS deploy path.
79+
if [ "$ENV" = "testnet" ]; then
80+
yarn bootstrap-testnet
81+
else
82+
yarn bootstrap
83+
fi
7884
aws ecr get-login-password --region "$AWS_REGION" | docker login --username AWS --password-stdin "$AWS_ACCOUNT.dkr.ecr.$AWS_REGION.amazonaws.com"
7985
IMAGE="$AWS_ACCOUNT.dkr.ecr.$AWS_REGION.amazonaws.com/atp-indexer-$ENV-atp-indexer:si-${GITHUB_SHA::7}"
8086
docker build -t "$IMAGE" .

0 commit comments

Comments
 (0)