Use goproxy
This commit is contained in:
parent
3bc17d6aba
commit
f38533cd7a
3 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,8 @@ steps:
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
# - linux/arm64
|
# - linux/arm64
|
||||||
|
environment:
|
||||||
|
- GOPROXY=http://goproxy.home:3000,direct
|
||||||
when:
|
when:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
- event: push
|
- event: push
|
||||||
|
@ -29,6 +31,8 @@ steps:
|
||||||
platforms:
|
platforms:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
# - linux/arm64
|
# - linux/arm64
|
||||||
|
environment:
|
||||||
|
- GOPROXY=http://goproxy.home:3000,direct
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|
|
@ -2,12 +2,17 @@ steps:
|
||||||
go-test:
|
go-test:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- echo $GOPROXY
|
||||||
- make -C polyculeconnect test
|
- make -C polyculeconnect test
|
||||||
|
environment:
|
||||||
|
- GOPROXY=http://goproxy.home:3000
|
||||||
|
|
||||||
go-build:
|
go-build:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- make -C polyculeconnect build
|
- make -C polyculeconnect build
|
||||||
|
environment:
|
||||||
|
- GOPROXY=http://goproxy.home:3000
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
|
|
|
@ -2,6 +2,7 @@ FROM --platform=$TARGETPLATFORM golang:1.20 AS builder
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
WORKDIR /go/src/git.faercol.me/polyculeconnect
|
WORKDIR /go/src/git.faercol.me/polyculeconnect
|
||||||
|
ENV GOPROXY=http://goproxy.home:3000
|
||||||
COPY polyculeconnect ./
|
COPY polyculeconnect ./
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue