Run generate explicitly
This commit is contained in:
parent
5f6427d146
commit
c05cc378f0
2 changed files with 4 additions and 1 deletions
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
|
@ -19,6 +19,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
|
|
||||||
|
- name: Generate
|
||||||
|
run: go generate ./...
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM golang:alpine as build
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY . /root
|
COPY . /root
|
||||||
RUN go build .
|
RUN go generate ./... && go build .
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue