CI: Fix compilation with go-1.18
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
da2cdd59f1
commit
8c294ac350
16
.drone.yml
16
.drone.yml
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user