ci: build distroless images

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar
2022-04-14 15:35:32 +02:00
parent 6038af5044
commit 8b2ce6252d
2 changed files with 31 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
ARG BASEIMAGE=alpine
ARG BASE_IMAGE=alpine
FROM golang:1.17.8-alpine3.14 AS builder
@@ -44,7 +44,7 @@ RUN wget -O /usr/local/bin/gomplate \
FROM alpine:3.15.4 AS alpine
FROM gcr.io/distroless/static:latest AS distroless
FROM $BASEIMAGE
FROM $BASE_IMAGE
# Dex connectors, such as GitHub and Google logins require root certificates.
# Proper installations should manage those certificates, but it's a bad user