generated from nathanwoodburn/go-webserver-template
This commit is contained in:
parent
f4fdc29d80
commit
a19c2eda8a
@ -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"
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
4
nixpacks.toml
Normal file
4
nixpacks.toml
Normal file
@ -0,0 +1,4 @@
|
||||
# nixpacks.toml
|
||||
|
||||
[phase.name]
|
||||
aptPkgs = ['knot-dnsutils']
|
25
test.sh
25
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
|
||||
|
Loading…
Reference in New Issue
Block a user