mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-19 01:47:02 +00:00
Add informations how to use Kubeconform in Gitlab-CI
This commit is contained in:
parent
d8e348a597
commit
8280ec3ad0
1 changed files with 16 additions and 0 deletions
16
Readme.md
16
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
|
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.
|
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
|
### Proxy support
|
||||||
|
|
||||||
Kubeconform will respect the HTTPS_PROXY variable when downloading schema files.
|
Kubeconform will respect the HTTPS_PROXY variable when downloading schema files.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue