web3.news-publisher/entrypoint.sh

19 lines
416 B
Bash

#!/bin/sh
# Set the INPUT_* environment variables from script arguments
export INPUT_NODE=$1
export INPUT_SEED=$2
export INPUT_FOLDER=$3
# Providing a default value for INPUT_FOLDER if not set
if [ -z "$INPUT_FOLDER" ]
then
export INPUT_FOLDER="public"
fi
echo "Publishing to node: $INPUT_NODE"
echo "Publishing folder: $INPUT_FOLDER"
# Example command (replace with your actual command)
bun /app/src/index.ts