Skip to content

Commit

Permalink
Merge branch 'dockerify' into phase2
Browse files Browse the repository at this point in the history
  • Loading branch information
xadahiya committed Nov 20, 2023
2 parents bae5790 + 9ee447f commit 49380cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
Expand Down
13 changes: 11 additions & 2 deletions snapshotter_autofill.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,24 @@ if [ "$POWERLOOM_REPORTING_URL" ]; then
echo "Found SLACK_REPORTING_URL ${POWERLOOM_REPORTING_URL}";
fi

if [ "$WEB3_STORAGE_TOKEN" ]; then
echo "Found WEB3_STORAGE_TOKEN ${WEB3_STORAGE_TOKEN}";
fi

if [ "$NAMESPACE" ]; then
echo "Found NAMESPACE ${NAMESPACE}";
fi

cp config/projects.example.json config/projects.json
cp config/aggregator.example.json config/aggregator.json
cp config/auth_settings.example.json config/auth_settings.json
cp config/settings.example.json config/settings.json

export namespace=UNISWAPV2

export namespace="${NAMESPACE:-UNISWAPV2}"
export ipfs_url="${IPFS_URL:-/dns/ipfs/tcp/5001}"
export ipfs_api_key="${IPFS_API_KEY:-}"
export ipfs_api_secret="${IPFS_API_SECRET:-}"
export web3_storage_token="${WEB3_STORAGE_TOKEN:-}"

export slack_reporting_url="${SLACK_REPORTING_URL:-}"
export powerloom_reporting_url="${POWERLOOM_REPORTING_URL:-}"
Expand All @@ -72,6 +79,7 @@ echo "Using IPFS API KEY: ${ipfs_api_key}"
echo "Using protocol state contract: ${PROTOCOL_STATE_CONTRACT}"
echo "Using slack reporting url: ${slack_reporting_url}"
echo "Using powerloom reporting url: ${powerloom_reporting_url}"
echo "Using web3 storage token: ${web3_storage_token}"

sed -i'.backup' "s#relevant-namespace#$namespace#" config/settings.json

Expand All @@ -81,6 +89,7 @@ sed -i'.backup' "s#https://rpc-url#$SOURCE_RPC_URL#" config/settings.json

sed -i'.backup' "s#https://prost-rpc-url#$PROST_RPC_URL#" config/settings.json

sed -i'.backup' "s#web3-storage-token#$web3_storage_token#" config/settings.json
sed -i'.backup' "s#ipfs-writer-url#$ipfs_url#" config/settings.json
sed -i'.backup' "s#ipfs-writer-key#$ipfs_api_key#" config/settings.json
sed -i'.backup' "s#ipfs-writer-secret#$ipfs_api_secret#" config/settings.json
Expand Down

0 comments on commit 49380cd

Please sign in to comment.