Add CI/CD
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2021-02-04 04:52:15 +01:00
commit 9d069b7f6c
3 changed files with 122 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM golang:alpine as gobuild
RUN apk add --no-cache build-base
WORKDIR /go/src/git.nemunai.re/linky2influx
COPY *.go go.mod go.sum ./
RUN go get -d -v && \
go build -v
FROM alpine
CMD ["linky2influx"]
COPY --from=gobuild /go/src/git.nemunai.re/linky2influx/linky2influx /usr/bin/linky2influx