Use goproxy
Some checks failed
ci/woodpecker/push/deploy unknown status
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
chapeau 2023-10-22 22:13:14 +02:00
parent 3bc17d6aba
commit f38533cd7a
3 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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]

View file

@ -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