File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 30
30
run : docker version
31
31
- name : docker info
32
32
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
33
46
- name : clean build
34
47
run : ./gradlew clean build --info --stacktrace
35
48
- name : Publish Test Report
You can’t perform that action at this time.
0 commit comments