mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-19 18:07: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
|
- name: test
|
||||||
run: make docker-test
|
run: make docker-test
|
||||||
|
|
||||||
- name: build
|
|
||||||
run: make docker-build-static
|
|
||||||
|
|
||||||
- name: acceptance-test
|
- name: acceptance-test
|
||||||
run: make docker-acceptance
|
run: make docker-acceptance
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,14 @@
|
||||||
FROM alpine:latest as certs
|
FROM alpine:latest as certs
|
||||||
RUN apk add ca-certificates
|
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
|
FROM scratch AS kubeconform
|
||||||
MAINTAINER Yann HAMON <yann@mandragor.org>
|
MAINTAINER Yann HAMON <yann@mandragor.org>
|
||||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
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"]
|
ENTRYPOINT ["/kubeconform"]
|
||||||
Loading…
Reference in a new issue