CI: Fix compilation with go-1.18
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-03-20 03:15:09 +01:00
parent da2cdd59f1
commit 8c294ac350
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