diff --git a/blocknotify.sh b/blocknotify.sh new file mode 100644 index 0000000000000000000000000000000000000000..8049b8e862de79b8d222174184f1f6143b9593dc --- /dev/null +++ b/blocknotify.sh @@ -0,0 +1,8 @@ +#!/bin/bash +PATH="$1/.." + +if [ -e $PATH/pulse.faircoin.co/script/getdata.py ] +then + cd $PATH/pulse.faircoin.co/script + python3 getdata.py +fi diff --git a/docker-compose.yml b/docker-compose.yml index 5079ff4d14064d2963b0d3bf15f3d504180137e1..503e826e8d03e069b0de90895b749ebe119162e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: FAIRCOIN_PORT: 40414 container_name: FairCoin.Co-faircoind restart: always - command: '-disablewallet -conf="${FAIRCOIN_CONF}" -port=40414' + command: '-disablewallet -conf="${FAIRCOIN_CONF}" -port=40414 -blocknotify="${CI_PROJECT_DIR}/blocknotify.sh"' # command: '-disablewallet -conf="${FAIRCOIN_CONF}" -blocknotify="${BLOCKNOTIFY}"' network_mode: "host" user: "${GITLAB_RUNNER_UID}:${GITLAB_RUNNER_GID}"