mirror of https://github.com/jlelse/GoBlog
Improve Drone build time
This commit is contained in:
parent
e27cbf7b40
commit
4099f6c56c
|
@ -11,14 +11,14 @@ ADD templates/ /app/templates/
|
|||
ADD leaflet/ /app/leaflet/
|
||||
ADD dbmigrations/ /app/dbmigrations/
|
||||
|
||||
FROM buildbase as test
|
||||
|
||||
RUN go test -cover ./...
|
||||
|
||||
FROM buildbase as build
|
||||
|
||||
RUN go build -ldflags '-w -s' -o GoBlog
|
||||
|
||||
FROM build as test
|
||||
|
||||
RUN go test -cover ./...
|
||||
|
||||
FROM alpine:3.15 as base
|
||||
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Reference in New Issue