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:
Ben Bierens 2023-04-18 14:17:24 +02:00 committed by GitHub
parent 131d003a0c
commit 80106cd3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ on:
- "main"
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
docker:

View File

@ -106,12 +106,16 @@ if [ -n "$CACHE_SIZE" ]; then
fi
# 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"
args="$args --persistence=true"
args="$args --eth-provider=$ETH_PROVIDER"
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
echo "./root/codex $args"