From 2834027970cc1aa7ec2e6ce1fec57ee1beea34ec Mon Sep 17 00:00:00 2001 From: chapeau Date: Sun, 22 Oct 2023 22:13:14 +0200 Subject: [PATCH] Use goproxy --- .woodpecker/deploy.yml | 4 ++++ Dockerfile | 1 + 2 files changed, 5 insertions(+) diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 36f5034..514316d 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -9,6 +9,8 @@ steps: platforms: - linux/amd64 # - linux/arm64 + environment: + - GOPROXY=http://goproxy.home:3000,direct when: - event: pull_request - event: push @@ -29,6 +31,8 @@ steps: platforms: - linux/amd64 # - linux/arm64 + environment: + - GOPROXY=http://goproxy.home:3000,direct when: - event: push branch: main diff --git a/Dockerfile b/Dockerfile index cb9aa2a..fea0762 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM --platform=$TARGETPLATFORM golang:1.20 AS builder ARG TARGETPLATFORM ARG BUILDPLATFORM WORKDIR /go/src/git.faercol.me/polyculeconnect +ENV GOPROXY=http://goproxy.home:3000 COPY polyculeconnect ./ RUN make build