Creates marketplace_address.json during docker start. (#397)
* Creates marketplace_address.json during docker start. Signed-off-by: Ben Bierens <39762930+benbierens@users.noreply.github.com> * Enables manual start for docker workflow --------- Signed-off-by: Ben Bierens <39762930+benbierens@users.noreply.github.com>
This commit is contained in:
parent
131d003a0c
commit
80106cd3d2
|
@ -6,6 +6,7 @@ on:
|
||||||
- "main"
|
- "main"
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
|
@ -106,12 +106,16 @@ if [ -n "$CACHE_SIZE" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ethereum persistence
|
# Ethereum persistence
|
||||||
if [ -n "$ETH_PROVIDER" ] && [ -n "$ETH_ACCOUNT" ] && [ -n "$ETH_DEPLOYMENT" ]; then
|
if [ -n "$ETH_PROVIDER" ] && [ -n "$ETH_ACCOUNT" ] && [ -n "$ETH_MARKETPLACE_ADDRESS" ]; then
|
||||||
echo "Persistence enabled"
|
echo "Persistence enabled"
|
||||||
args="$args --persistence=true"
|
args="$args --persistence=true"
|
||||||
args="$args --eth-provider=$ETH_PROVIDER"
|
args="$args --eth-provider=$ETH_PROVIDER"
|
||||||
args="$args --eth-account=$ETH_ACCOUNT"
|
args="$args --eth-account=$ETH_ACCOUNT"
|
||||||
args="$args --eth-deployment=$ETH_DEPLOYMENT"
|
# args="$args --validator"
|
||||||
|
|
||||||
|
# Remove this as soon as CLI option is available:
|
||||||
|
echo "{\"contracts\": { \"Marketplace\": { \"address\": \""$ACCOUNTSTR"\" } } }" > /root/marketplace_address.json
|
||||||
|
args="$args --eth-deployment=/root/marketplace_address.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "./root/codex $args"
|
echo "./root/codex $args"
|
||||||
|
|
Loading…
Reference in New Issue