No more need for "GOPROXY" environment variable.

This commit is contained in:
Joachim Bauch 2024-06-03 09:56:37 +02:00
commit 82919ce97b
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
3 changed files with 2 additions and 7 deletions

View file

@ -77,15 +77,12 @@ jobs:
[ -d "tmp/vendor" ] || exit 1
- name: Build
env:
GOPROXY: off
run: |
echo "Building with $(nproc) threads"
make -C tmp build -j$(nproc)
- name: Run tests
env:
GOPROXY: off
USE_DB_IP_GEOIP_DATABASE: "1"
run: |
make -C tmp test TIMEOUT=120s

View file

@ -7,8 +7,7 @@ WORKDIR /workdir
COPY . .
RUN touch /.dockerenv && \
apk add --no-cache bash git build-base protobuf && \
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make proxy; else \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make proxy; fi
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make proxy
FROM alpine:3

View file

@ -7,8 +7,7 @@ WORKDIR /workdir
COPY . .
RUN touch /.dockerenv && \
apk add --no-cache bash git build-base protobuf && \
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make server; else \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make server; fi
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make server
FROM alpine:3