Work on reoccurring build errors (#123)

* bump golang-action to 1.7.0

* set action-gh-release to v1

* move away from distroless to alpine

* bump alpine to latest to align with Dockerfile

* making sure path is gopath is correct

* separate cache directories per build-job

* go mod tidy

* update go dependencies
This commit is contained in:
Markus Viitamäki
2021-05-10 12:28:51 +02:00
committed by GitHub
parent a537adbcaf
commit 0cdaa2ae05
7 changed files with 78 additions and 47 deletions
+6 -6
View File
@@ -19,13 +19,13 @@ RUN go install .
FROM docker.io/golang:latest AS wg_go_build
WORKDIR /wg-go
RUN git init && \
git remote add origin https://git.zx2c4.com/wireguard-go && \
git fetch && \
git checkout tags/v0.0.20200320 -b build && \
make
RUN git init
RUN git remote add origin https://git.zx2c4.com/wireguard-go
RUN git fetch
RUN git checkout tags/v0.0.20210424 -b build
RUN make
FROM alpine:3.12
FROM alpine:latest
RUN apk add libc6-compat --no-cache
COPY ./wg-go-ui.sh /
COPY --from=build /go/bin/wireguard-ui /