update CI

This commit is contained in:
ginuerzh
2022-01-10 11:42:51 +08:00
parent 37e77bdce5
commit 0dd604a1f8
6 changed files with 56 additions and 72 deletions

View File

@ -1,19 +1,11 @@
FROM --platform=$BUILDPLATFORM golang:1-alpine as builder
FROM golang:1-alpine as builder
# Convert TARGETPLATFORM to GOARCH format
# https://github.com/tonistiigi/xx
COPY --from=tonistiigi/xx:golang / /
ARG TARGETPLATFORM
RUN apk add --no-cache musl-dev git gcc
RUN apk add --no-cache musl-dev gcc
ADD . /src
WORKDIR /src
ENV GO111MODULE=on
RUN cd cmd/gost && go env && go build -v
FROM alpine:latest