Skip to content

Commit

Permalink
Change parsing of pingdom ips
Browse files Browse the repository at this point in the history
  • Loading branch information
TawneeOwl committed Oct 21, 2024
1 parent 4b32c1e commit b0bee89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# Pull ranges from shared LAA IP ranges and then remove spaces,
# replace linebreaks with commas, remove last comma, and escape commas for helm input
SHARED_IP_RANGES_LAA=$(curl -s https://raw.githubusercontent.com/ministryofjustice/laa-ip-allowlist/main/cidrs.txt | tr -d ' ' | tr '\n' ',' | sed 's/,/\\,/g' | sed 's/\\,$//')
PINGDOM_IP_RANGES=$(curl -s https://my.pingdom.com/probes/ipv4 | tr '\n' ',' | sed 's/,$//')
PINGDOM_IP_RANGES=$(curl -s https://my.pingdom.com/probes/ipv4 | tr -d ' ' | tr '\n' ',' | sed 's/,/\\,/g' | sed 's/\\,$//')
echo "PINGDOM_IP_RANGES=$PINGDOM_IP_RANGES" >> $GITHUB_ENV
echo "SHARED_IP_RANGES_LAA=$SHARED_IP_RANGES_LAA" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# Pull ranges from shared LAA IP ranges and then remove spaces,
# replace linebreaks with commas, remove last comma, and escape commas for helm input
SHARED_IP_RANGES_LAA=$(curl -s https://raw.githubusercontent.com/ministryofjustice/laa-ip-allowlist/main/cidrs.txt | tr -d ' ' | tr '\n' ',' | sed 's/,/\\,/g' | sed 's/\\,$//')
PINGDOM_IP_RANGES=$(curl -s https://my.pingdom.com/probes/ipv4 | tr '\n' ',' | sed 's/,$//')
PINGDOM_IP_RANGES=$(curl -s https://my.pingdom.com/probes/ipv4 | tr -d ' ' | tr '\n' ',' | sed 's/,/\\,/g' | sed 's/\\,$//')
echo "PINGDOM_IP_RANGES=$PINGDOM_IP_RANGES" >> $GITHUB_ENV
echo "SHARED_IP_RANGES_LAA=$SHARED_IP_RANGES_LAA" >> $GITHUB_ENV
Expand Down

0 comments on commit b0bee89

Please sign in to comment.