<p>We are thinking about migrating our infrastructure to Kubernetes.
All our Source-code is in GitHub, Docker containers are in Docker Hub.</p>
<p>I would like to have a CI/CD pipeline for Kubernetes only using GitHub and Docker Hub. Is there a way?</p>
<p>If not, what tools (as few as possible) should we use?</p>

kopilot.schneider
<p>You can go it as per need using the Github Action and Docker hub only.</p>
<p>You should also checkout the keel with GitHub :<a href="https://github.com/keel-hq/keel" rel="nofollow noreferrer">https://github.com/keel-hq/keel</a></p>
<p><strong>Step: 1</strong></p>
<pre><code>name: Stable Build
on:
  push:
    tags:
      - &quot;*.*.*&quot;
...
      - name: Set tag in env
        run: echo &quot;TAG=${GITHUB_REF#refs/*/}&quot; &gt;&gt; $GITHUB_ENV
...
          tags: runq/go-kube:${{ env.TAG }}, runq/go-kube:latest
</code></pre>
<p><strong>Step : 2</strong></p>
<p>Once build is done you can push it to Docker Hub</p>
<p><strong>Step : 3</strong></p>
<p>Keel can auto-update the deployment, but if you don't want that you can each time apply the YAML config from Github action also.</p>
<p>Read more at : <a href="https://dev.to/achu1612/ci-cd-for-kubernetes-using-github-actions-and-keel-4b7c" rel="nofollow noreferrer">https://dev.to/achu1612/ci-cd-for-kubernetes-using-github-actions-and-keel-4b7c</a></p>
<p>If you are planning to use Azure you should checkout : <a href="https://github.com/marketplace/actions/deploy-to-kubernetes-cluster" rel="nofollow noreferrer">https://github.com/marketplace/actions/deploy-to-kubernetes-cluster</a></p>
