From 46b7622a0887d6daf1a5053588cdd8871d5a9e39 Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 16 Oct 2022 15:46:22 +0200 Subject: [PATCH] Add informations how to use Kubeconform in Gitlab-CI (#139) --- Readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Readme.md b/Readme.md index 4d26201..7b89f2b 100644 --- a/Readme.md +++ b/Readme.md @@ -257,6 +257,22 @@ bandwidth costs might be applicable. Since bandwidth from Github Packages within Github Container Registry to also be usable for free within Github Actions in the future. If that were not to be the case, I might publish the Docker image to a different platform. +### Usage in Gitlab-CI + +The Kubeconform Docker image can be used in Gitlab-CI. Here is an example of a Gitlab-CI job: + +``` +lint-kubeconform: + stage: validate + image: + name: ghcr.io/yannh/kubeconform:latest-alpine + entrypoint: [""] + script: + - kubeconform +``` + +See [issue 106](https://github.com/yannh/kubeconform/issues/106) for more details. + ### Proxy support Kubeconform will respect the HTTPS_PROXY variable when downloading schema files.