mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-19 01:47:02 +00:00
use multistep in docker-image
This commit is contained in:
parent
959ecc7260
commit
f3d6607b28
2 changed files with 7 additions and 4 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
|
@ -10,9 +10,6 @@ jobs:
|
|||
- name: test
|
||||
run: make docker-test
|
||||
|
||||
- name: build
|
||||
run: make docker-build-static
|
||||
|
||||
- name: acceptance-test
|
||||
run: make docker-acceptance
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
FROM alpine:latest as certs
|
||||
RUN apk add ca-certificates
|
||||
|
||||
FROM golang:1.14 as build
|
||||
WORKDIR /go/src/github.com/yannh/kubeconform
|
||||
COPY . .
|
||||
RUN make build-static
|
||||
RUN find
|
||||
|
||||
FROM scratch AS kubeconform
|
||||
MAINTAINER Yann HAMON <yann@mandragor.org>
|
||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY bin/kubeconform /
|
||||
COPY --from=build bin/kubeconform /kubeconform
|
||||
ENTRYPOINT ["/kubeconform"]
|
||||
Loading…
Reference in a new issue