feat: Fix build pack
All checks were successful
Build Docker / BuildSite (push) Successful in 1m1s

This commit is contained in:
Nathan Woodburn 2024-06-22 17:40:53 +10:00
parent f4fdc29d80
commit a19c2eda8a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
4 changed files with 7 additions and 25 deletions

View File

@ -38,6 +38,8 @@ jobs:
repo=$GITHUB_REPOSITORY repo=$GITHUB_REPOSITORY
# Remove the org name # Remove the org name
repo=${repo#*/} repo=${repo#*/}
# Set repo to lowercase
repo=$(echo $repo | tr '[:upper:]' '[:lower:]')
echo "container=$repo" echo "container=$repo"

View File

@ -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:25 AEST - Test
Sat 22 Jun 2024 17:33:37 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:33:51 AEST - Test
Sat 22 Jun 2024 17:36:21 AEST - Test

4
nixpacks.toml Normal file
View File

@ -0,0 +1,4 @@
# nixpacks.toml
[phase.name]
aptPkgs = ['knot-dnsutils']

25
test.sh
View File

@ -1,30 +1,5 @@
#!/bin/bash #!/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 # Check if script has IP address as argument
if [ -z "$1" ]; then if [ -z "$1" ]; then
# Get Node IPs # Get Node IPs