From 4544f45fa1399d53f18d9b67affadd79e38c9989 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 29 Aug 2021 13:06:30 +0200 Subject: [PATCH] Also release an alpine variant of the Docker image for Gitlab CI --- .goreleaser.yml | 9 +++++++++ Dockerfile-alpine | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile-alpine diff --git a/.goreleaser.yml b/.goreleaser.yml index af1e95b..67481b9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -38,6 +38,15 @@ dockers: - "--platform=linux/amd64" goos: linux goarch: amd64 + - image_templates: + - 'ghcr.io/yannh/kubeconform:latest-alpine' + - 'ghcr.io/yannh/kubeconform:{{ .Tag }}-alpine' + - 'ghcr.io/yannh/kubeconform:{{ .Tag }}-amd64-alpine' + dockerfile: Dockerfile-alpine + build_flag_templates: + - "--platform=linux/amd64" + goos: linux + goarch: amd64 checksum: name_template: 'CHECKSUMS' diff --git a/Dockerfile-alpine b/Dockerfile-alpine new file mode 100644 index 0000000..281b18c --- /dev/null +++ b/Dockerfile-alpine @@ -0,0 +1,5 @@ +FROM alpine:3.14 as certs +MAINTAINER Yann HAMON +RUN apk add ca-certificates +COPY kubeconform / +ENTRYPOINT ["/kubeconform"]