CI: Fix compilation with go-1.18

This commit is contained in:
nemunaire 2022-03-20 03:15:09 +01:00
parent 8e046f6bc6
commit 33ba2352a1
2 changed files with 9 additions and 9 deletions

View File

@ -19,17 +19,17 @@ steps:
- tar chjf ../deploy/static.tar.bz2 build
- name: vet
image: golang:alpine
image: golang:1-alpine
commands:
- apk --no-cache add build-base
- go vet -v
- go vet -v -buildvcs=false
- name: backend armv7
image: golang:alpine
image: golang:1-alpine
commands:
- apk --no-cache add build-base
- go get -v
- go build -v -ldflags="-s -w"
- go build -v -buildvcs=false -ldflags="-s -w"
environment:
GOARM: 7
@ -65,17 +65,17 @@ steps:
- tar chjf ../deploy/static.tar.bz2 build
- name: vet
image: golang:alpine
image: golang:1-alpine
commands:
- apk --no-cache add build-base
- go vet -v
- go vet -v -buildvcs=false
- name: backend
image: golang:alpine
image: golang:1-alpine
commands:
- apk --no-cache add build-base
- go get -v
- go build -v -ldflags="-s -w"
- go build -v -buildvcs=false -ldflags="-s -w"
- name: publish
image: plugins/docker

View File

@ -21,7 +21,7 @@ COPY --from=nodebuild /ui/build ui/build
RUN go get -d -v && \
go generate -v && \
go build -v -ldflags="-s -w" -o atsebay.t
go build -v -buildvcs=false -ldflags="-s -w" -o atsebay.t
FROM alpine:3.15