mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 05:59:22 +00:00
68 lines
No EOL
3.3 KiB
HTML
68 lines
No EOL
3.3 KiB
HTML
<!doctype html><html><head>
|
|
<meta charset=utf-8>
|
|
<meta name=author content="Yann Hamon">
|
|
<link rel=stylesheet type=text/css href=/css/style.css><link rel=stylesheet type=text/css href=/css/prism.css>
|
|
<title>Kubeconform - Fast Kubernetes manifests validation! | GitHub Action</title>
|
|
</head>
|
|
<body>
|
|
<div id=main-container><div id=header>
|
|
<ul id=navigation>
|
|
<li><a href=/about>About</a></li>
|
|
<li><a href=https://github.com/yannh/kubeconform/>GitHub</a></li>
|
|
<li><a href=/docs/installation/>Docs</a></li>
|
|
<li><a href=/>Home</a></li>
|
|
</ul>
|
|
<h1>Kubeconform</h1>
|
|
<h2>A fast Kubernetes manifests validator</h2>
|
|
</div>
|
|
<div id=content><ul id=menu>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/overview/>Overview</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/installation/>Installation</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/usage/>Usage</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/crd-support/>Custom Resources support</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/json-schema-conversion/>OpenAPI to JSON Schema conversion</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/usage-as-github-action/>GitHub Action</a></li>
|
|
<li><a href=http://kubeconform.mandragor.org/docs/using-as-a-go-module/>Kubeconform as a Go module</a></li>
|
|
</ul>
|
|
<div id=main>
|
|
<div class=navig>
|
|
<a href=http://kubeconform.mandragor.org/docs/json-schema-conversion/ id=prev>< OpenAPI to JSON Schema conversion</a>
|
|
<a href=http://kubeconform.mandragor.org/docs/using-as-a-go-module/ id=next>Kubeconform as a Go module ></a>
|
|
</div>
|
|
<div id=content-text>
|
|
<h1>GitHub Action</h1>
|
|
<p>Kubeconform is publishes Docker Images to GitHub’s new Container Registry, ghcr.io. These images
|
|
can be used directly in a GitHub Action, once logged in using a <a href=https://github.blog/changelog/2021-03-24-packages-container-registry-now-supports-github_token/><em>GitHub Token</em></a>.</p>
|
|
<pre><code class=language-bash>name: kubeconform
|
|
on: push
|
|
jobs:
|
|
kubeconform:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: login to GitHub Packages
|
|
run: echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
|
|
- uses: actions/checkout@v2
|
|
- uses: docker://ghcr.io/yannh/kubeconform:master
|
|
with:
|
|
entrypoint: '/kubeconform'
|
|
args: "-summary -output json kubeconfigs/"
|
|
</code></pre>
|
|
<p><em>Note on pricing</em>: Kubeconform relies on GitHub Container Registry which is currently in Beta. During that period,
|
|
<a href=https://docs.github.com/en/packages/guides/about-github-container-registry>bandwidth is free</a>. After that period,
|
|
bandwidth costs might be applicable. Since bandwidth from GitHub Packages within GitHub Actions is free, I expect
|
|
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.</p>
|
|
</div>
|
|
<div class=navig>
|
|
<a href=http://kubeconform.mandragor.org/docs/json-schema-conversion/ id=prev>< OpenAPI to JSON Schema conversion</a>
|
|
<a href=http://kubeconform.mandragor.org/docs/using-as-a-go-module/ id=next>Kubeconform as a Go module ></a>
|
|
</div>
|
|
<script defer src=/js/prism.js></script>
|
|
</div>
|
|
</div><div id=footer>
|
|
Website powered by <a href=https://gohugo.io/>Hugo</a>
|
|
</div>
|
|
</div>
|
|
<script defer src=/js/prism.js></script>
|
|
</body>
|
|
</html> |