fix: install iproute2 for ip command in webhook trigger
All checks were successful
Basil CI/CD Pipeline / Code Linting (push) Successful in 58s
Basil CI/CD Pipeline / Web Tests (push) Successful in 1m14s
Basil CI/CD Pipeline / API Tests (push) Successful in 1m28s
Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 58s
Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m11s
Basil CI/CD Pipeline / Build All Packages (push) Successful in 1m32s
Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (push) Successful in 4m18s
Basil CI/CD Pipeline / Trigger Deployment (push) Successful in 12s
All checks were successful
Basil CI/CD Pipeline / Code Linting (push) Successful in 58s
Basil CI/CD Pipeline / Web Tests (push) Successful in 1m14s
Basil CI/CD Pipeline / API Tests (push) Successful in 1m28s
Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 58s
Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m11s
Basil CI/CD Pipeline / Build All Packages (push) Successful in 1m32s
Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (push) Successful in 4m18s
Basil CI/CD Pipeline / Trigger Deployment (push) Successful in 12s
The webhook trigger was failing with: /var/run/act/workflow/0: line 6: ip: command not found The issue: - node:20-bookworm container doesn't include iproute2 package - The 'ip route' command requires iproute2 to be installed Solution: - Install iproute2 package along with jq - Add fallback to common Docker gateway IP (172.17.0.1) - This ensures webhook can reach host even if ip command fails Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -390,11 +390,17 @@ jobs:
|
||||
steps:
|
||||
- name: Trigger webhook
|
||||
run: |
|
||||
# Install jq for JSON construction
|
||||
apt-get update -qq && apt-get install -y -qq jq > /dev/null 2>&1
|
||||
# Install required packages
|
||||
apt-get update -qq && apt-get install -y -qq jq iproute2 > /dev/null 2>&1
|
||||
|
||||
# Get Docker host IP (gateway of the container network)
|
||||
HOST_IP=$(ip route | grep default | awk '{print $3}')
|
||||
|
||||
# Fallback to common Docker gateway IPs if not found
|
||||
if [ -z "$HOST_IP" ]; then
|
||||
HOST_IP="172.17.0.1"
|
||||
fi
|
||||
|
||||
echo "Using host IP: $HOST_IP"
|
||||
|
||||
# Construct JSON payload with jq to properly escape multiline commit messages
|
||||
|
||||
Reference in New Issue
Block a user