Skip to content

Test github action with kubeconfig #22

Test github action with kubeconfig

Test github action with kubeconfig #22

Workflow file for this run

on:
pull_request:
branches:
- main
jobs:
preview:
runs-on: ubuntu-latest
container: okteto/okteto:latest
steps:
- name: Context
uses: okteto/[email protected]
with:
token: ${{ secrets.OKTETO_TOKEN }}
url: ${{ secrets.OKTETO_URL }}
env:
KUBECONFIG: /github/home/.kube/config
- name: Set kubeconfig
# run: cd ${RUNNER_TEMP}/_github_home/.kube && ls -la ${RUNNER_TEMP}/_github_home/.kube
run: cd /github/home/.kube/ && ls -la /github/home/.kube/
- name: List service accounts
run: kubectl get sa
env:
KUBECONFIG: /github/home/.kube/config
# KUBECONFIG: ${RUNNER_TEMP}/_github_home/.kube/config This doesn't work