fix issue
This commit is contained in:
parent
fed0a769f2
commit
9a9987eeb2
|
@ -1,6 +1,8 @@
|
||||||
FROM alpine/helm:3.8.1
|
FROM alpine/helm:3.8.1
|
||||||
MAINTAINER Joachim Hill-Grannec <joachim@pelo.tech>
|
MAINTAINER Joachim Hill-Grannec <joachim@pelo.tech>
|
||||||
|
|
||||||
|
RUN apk add libc6-compat
|
||||||
|
|
||||||
COPY build/drone-helm /bin/drone-helm
|
COPY build/drone-helm /bin/drone-helm
|
||||||
COPY assets/kubeconfig.tpl /root/.kube/config.tpl
|
COPY assets/kubeconfig.tpl /root/.kube/config.tpl
|
||||||
|
|
||||||
|
|
33
Dockerfile.multistage
Normal file
33
Dockerfile.multistage
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
## Build
|
||||||
|
FROM golang:1.13 AS build
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY go.mod ./
|
||||||
|
COPY go.sum ./
|
||||||
|
|
||||||
|
COPY cmd cmd
|
||||||
|
COPY internal internal
|
||||||
|
COPY assets assets
|
||||||
|
|
||||||
|
# test
|
||||||
|
RUN go test ./cmd/... ./internal/...
|
||||||
|
RUN go vet ./cmd/... ./internal/...
|
||||||
|
|
||||||
|
# Build binary
|
||||||
|
RUN go build -o build/drone-helm cmd/drone-helm/main.go
|
||||||
|
|
||||||
|
## Deploy
|
||||||
|
FROM alpine/helm:3.8.1
|
||||||
|
|
||||||
|
RUN apk add libc6-compat
|
||||||
|
|
||||||
|
# COPY build/drone-helm /bin/drone-helm
|
||||||
|
COPY --from=build /app/build/drone-helm /bin/drone-helm
|
||||||
|
COPY assets/kubeconfig.tpl /root/.kube/config.tpl
|
||||||
|
|
||||||
|
LABEL description="Helm 3 plugin for Drone 3"
|
||||||
|
LABEL base="alpine/helm"
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/bin/drone-helm" ]
|
Loading…
Reference in a new issue