Skip to content

Commit 3bfa9ac

Browse files
committed
debug dns issues on Windows
1 parent 069b5d9 commit 3bfa9ac

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/check.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"net/http"
6+
"net/http/httputil"
7+
)
8+
9+
func main() {
10+
resp, err := http.Get("https://registry-1.docker.io/v2/")
11+
fmt.Printf("Error: %v\n", err)
12+
if err == nil {
13+
dr, _ := httputil.DumpResponse(resp, true)
14+
fmt.Printf("Body:\n===\n%s\n===\n", string(dr))
15+
}
16+
}

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ jobs:
3030
run: docker version
3131
- name: docker info
3232
run: docker info
33+
- name: Set up Go
34+
if: matrix.os == 'windows-latest'
35+
uses: actions/setup-go@v2
36+
with:
37+
go-version: 1.17
38+
- name: debug dns issues on Windows
39+
if: matrix.os == 'windows-latest'
40+
run: |
41+
nslookup registry-1.docker.io
42+
curl -v https://registry-1.docker.io/
43+
curl -v https://registry-1.docker.io/v2/
44+
curl -v --head https://registry-1.docker.io/v2/gesellix/echo-server/manifests/os-windows
45+
go run .github/check.go
3346
- name: clean build
3447
run: ./gradlew clean build --info --stacktrace
3548
- name: Publish Test Report

0 commit comments

Comments
 (0)