@@ -84,19 +84,37 @@ jobs:
8484 - name : Install resolvconf
8585 run : sudo apt-get update && sudo apt-get install -y resolvconf
8686
87+ # Manual setup for Cloudflare Warp to enable IPv6 (replaces action for reliability)
88+ - name : Setup Cloudflare Warp for IPv6 (Manual)
89+ timeout-minutes : 5 # Fail fast if it hangs
90+ run : |
91+ echo "Installing Cloudflare Warp..."
92+ sudo apt-get update
93+ curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
94+ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
95+ sudo apt-get update
96+ sudo apt-get install -y cloudflare-warp
97+ echo "Registering Warp (with retry)..."
98+ warp-cli --accept-tos register || (echo "Registration failed, retrying..." && warp-cli --accept-tos register)
99+ echo "Setting mode to client for stability..."
100+ warp-cli --accept-tos mode client
101+ echo "Excluding Azure DNS IP to avoid resolution timeouts..."
102+ warp-cli --accept-tos add-excluded-route 168.63.129.16/32
103+ echo "Connecting Warp..."
104+ warp-cli --accept-tos connect
105+ sleep 10 # Wait for daemon to stabilize
106+ warp-cli status || echo "Warp status check failed"
87107
88- # Add this step to enable IPv6 via Cloudflare Warp
89- - name : Setup Cloudflare Warp for IPv6
90- uses : fscarmen/warp-on-actions@v1.3
91- with :
92- stack : dual # Enables both IPv4 and IPv6 (default is dual, but explicit for clarity)
93-
94- # Check IPv6 connectivity
95108 - name : Debug IPv6 connectivity
96109 run : |
97- echo "Testing IPv6 connectivity..."
98- curl -6 ifconfig.io || echo "No IPv6"
99- ping6 google.com -c 3 || echo "Can't reach IPv6 internet"
110+ echo "Warp status:"
111+ warp-cli status || echo "Warp not running"
112+ echo "IPv6 address:"
113+ curl -6 ifconfig.io || echo "No IPv6 address"
114+ echo "Ping IPv6:"
115+ ping6 -c 3 google.com || echo "IPv6 ping failed"
116+ echo "DNS resolution:"
117+ dig AAAA google.com || echo "IPv6 DNS failed"
100118
101119 # nick-fields/retry@v2 starts at base dir
102120 - name : Terraform apply
0 commit comments