Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit c3e9a54

Browse files
move to public GOPROXY in build and release flow
Signed-off-by: Rudraksh Pareek <[email protected]>
1 parent 68075cf commit c3e9a54

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-go@v1
2222
with:
2323
go-version: ${{ secrets.GO_VERSION }}
24-
- run: GOPROXY=direct GOSUMDB=off go get -u golang.org/x/lint/golint; go list ./osm/... | grep -v /vendor/ | xargs -L1 /home/runner/go/bin/golint -set_exit_status
24+
- run: GOPROXY=https://proxy.golang.org,direct GOSUMDB=off go get -u golang.org/x/lint/golint; go list ./osm/... | grep -v /vendor/ | xargs -L1 /home/runner/go/bin/golint -set_exit_status
2525
error_check:
2626
name: Error check
2727
runs-on: ubuntu-latest
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/setup-go@v1
3535
with:
3636
go-version: ${{ secrets.GO_VERSION }}
37-
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u github.com/kisielk/errcheck; /home/runner/go/bin/errcheck -tags draft ./...
37+
- run: GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go get -u github.com/kisielk/errcheck; /home/runner/go/bin/errcheck -tags draft ./...
3838
static_check:
3939
name: Static check
4040
runs-on: ubuntu-latest
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/setup-go@v1
4848
with:
4949
go-version: ${{ secrets.GO_VERSION }}
50-
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck; /home/runner/go/bin/staticcheck -tags draft -checks all ./osm/... # https://staticcheck.io/docs/checks
50+
- run: GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck; /home/runner/go/bin/staticcheck -tags draft -checks all ./osm/... # https://staticcheck.io/docs/checks
5151
vet:
5252
name: Vet
5353
runs-on: ubuntu-latest
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/setup-go@v1
6161
with:
6262
go-version: ${{ secrets.GO_VERSION }}
63-
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go vet -tags draft ./...
63+
- run: GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go vet -tags draft ./...
6464
sec_check:
6565
name: Security check
6666
runs-on: ubuntu-latest
@@ -99,4 +99,4 @@ jobs:
9999
echo "current-context:" ${CURRENTCONTEXT}
100100
export KUBECONFIG="${HOME}/.kube/config"
101101
echo "environment-kubeconfig:" ${KUBECONFIG}
102-
GOPROXY=direct GOSUMDB=off GO111MODULE=on go test ./...
102+
GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go test ./...

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN go mod download
77
COPY main.go main.go
88
COPY internal/ internal/
99
COPY osm/ osm/
10-
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags="-w -s -X main.version=$VERSION -X main.gitsha=$GIT_COMMITSHA" -a -o meshery-osm main.go
10+
RUN GOPROXY=https://proxy.golang.org,direct CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags="-w -s -X main.version=$VERSION -X main.gitsha=$GIT_COMMITSHA" -a -o meshery-osm main.go
1111

1212
FROM alpine:3.14 as jsonschema-util
1313
RUN apk add --no-cache curl

0 commit comments

Comments
 (0)