diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e238e86..19c4b1b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,11 @@ jobs: run: docker compose up laconicd -d - name: Run registry-cli demo commands in registry-cli container - run : ls -tla + run : | + laconicd_key=$( docker compose exec laconicd echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe ) + ./create-config $laconicd_key + echo ./config.yml + ls -tla - name: stop containers working-directory: laconicd/tests/sdk_tests run: docker compose down diff --git a/create-config.sh b/create-config.sh new file mode 100755 index 0000000..67343fc --- /dev/null +++ b/create-config.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +if [[ $# -ne 1 ]]; then + echo "Usage: $0 " + exit 1 +fi + +# Assign the arguments to variables +new_key=$1 +file_path=./config.yml + +# Check if the file exists +if [[ ! -f "$file_path" ]]; then + echo "Creating file: $file_path" + # Create the YAML file +cat > $file_path <