<p>Github repo: <a href="https://github.com/jonesrussell/portfolio-sapper" rel="nofollow noreferrer">https://github.com/jonesrussell/portfolio-sapper</a></p>
<p>Here is my Github Action YML:</p>
<pre class="lang-yaml prettyprint-override"><code>name: Build and Deploy
on:
  push:
    branches:
      - main

jobs:
  export-docker:
    runs-on: ubuntu-latest
    steps:
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: jonesrussell/portfolio-app:latest
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}
      - name: DigitalOcean Kubernetes
        uses: matootie/dokube@v1.3.4
        with:
          personalAccessToken: ${{ secrets.DIGITALOCEAN_TOKEN }}
          clusterName: galaxy-k8s
</code></pre>
<p>What I can't figure out is how to: kubectl apply -f kubernetes.yml with matootie/dokube@v1.3.4</p>
<p>Cheers</p>

Russell
<p>What <code>matootie/dokube</code> does is it configures <code>kubectl</code> and adds it to the runner path. After you use it in your workflows you can add any additional steps using the <code>kubectl</code> executable as you would anything else, just as I have added to your original workflow file:</p>
<pre class="lang-yaml prettyprint-override"><code>name: Build and Deploy
on:
  push:
    branches:
      - main

jobs:
  export-docker:
    runs-on: ubuntu-latest
    steps:
      ...

      - name: Apply changes
        run: kubectl apply -f kubernetes.yml
</code></pre>
<p><strong>Disclaimer:</strong> I'm the author of the repository.</p>
