<h3>Context</h3>
<p>I've installed minikube in github codespaces, and that works fantastic! With this setup I'm able to port forward any application running in minikube and reach it with the url generated by github codespaces.</p>
<h3>Problem</h3>
<p>I'd like to use github actions to deploy an app into the minikube cluster that runs in github codespaces.</p>
<h3>Question</h3>
<p>Is it possible, if so the how to do it?</p>

<p>It toured out that it is possible. There are 2 ways that you could solve this problem.</p>
<h3>Push based</h3>
<ol>
<li>Start GitHub codespace with minikube installed in it</li>
<li>Install and configure GitHub's <a href="https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners" rel="nofollow noreferrer">self hosted runner</a> in GitHub Codespaces</li>
<li>Configure and start GitHub's self hosted runner in GitHub Codespace</li>
<li>Run your GitHub's Actions on self hosted runners
<pre class="lang-yaml prettyprint-override"><code>jobs:
  build:
    runs-on:
      labels:
      - self-hosted
      - self-hosted-runner-label
</code></pre>
</li>
</ol>
<p>I've successful implement above flow in this <a href="https://github.com/ldynia/codespace-minikube" rel="nofollow noreferrer">repository</a>.</p>
<h3>Pull based</h3>
<ol>
<li>Start GitHub Codespace with minikube installed in it</li>
<li>Install <a href="https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/" rel="nofollow noreferrer">ArgoCD</a> in minikube</li>
<li>Point ArgoCD towards your GitHub repository</li>
<li>Use GitHub Actions to generate new k8s manifests files</li>
</ol>
