diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index fe20ab7..00b2f1a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -38,6 +38,8 @@ jobs: repo=$GITHUB_REPOSITORY # Remove the org name repo=${repo#*/} + # Set repo to lowercase + repo=$(echo $repo | tr '[:upper:]' '[:lower:]') echo "container=$repo" diff --git a/monitor.log b/monitor.log index 83ebc27..d9741de 100644 --- a/monitor.log +++ b/monitor.log @@ -16,3 +16,4 @@ Sat 22 Jun 2024 17:33:11 AEST - Test Sat 22 Jun 2024 17:33:25 AEST - Test Sat 22 Jun 2024 17:33:37 AEST - Test Sat 22 Jun 2024 17:33:51 AEST - Test +Sat 22 Jun 2024 17:36:21 AEST - Test diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..e5765ad --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,4 @@ +# nixpacks.toml + +[phase.name] + aptPkgs = ['knot-dnsutils'] \ No newline at end of file diff --git a/test.sh b/test.sh index a5a6cd1..409606a 100755 --- a/test.sh +++ b/test.sh @@ -1,30 +1,5 @@ #!/bin/bash -# Check if script has ip address as argument -if [ -z "$1" ]; then - # Get Node IPs - RESOLVED_IPS=$(dig +short hnsdoh.com) - NODE_IPS=($RESOLVED_IPS) - if [ ${#NODE_IPS[@]} -eq 0 ]; then - echo "No IP addresses resolved for hnsdoh.com. Exiting." - exit 1 - fi -fi - -# If script has ip address as argument, use that -if [ -n "$1" ]; then - # Add all arguments to NODE_IPS array - NODE_IPS=("$@") -fi - - - -# Define the domain and host for kdig commands -TLS_HOST="hnsdoh.com" -DOH_URL="https://hnsdoh.com/dns-query" - -#!/bin/bash - # Check if script has IP address as argument if [ -z "$1" ]; then # Get Node IPs