Move test .kubeconfig into CI setup

Inline the creation of a test .kubeconfig into the CI setup.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-02-26 16:32:58 +01:00
parent 6ee5a9c7c9
commit bb132b1682
2 changed files with 13 additions and 20 deletions

View File

@@ -21,8 +21,19 @@ jobs:
fetch-depth: 0
- run: |
mkdir -p /home/runner/.kube/
cp -rp ${GITHUB_WORKSPACE}/ansible_collections/kubevirt/core/tests/.kubeconfig /home/runner/.kube/config
cat /home/runner/.kube/config
cat <<- EOF > /home/runner/.kube/config
apiVersion: v1
kind: Config
clusters:
- cluster:
server: http://localhost:12345
name: default
contexts:
- context:
cluster: default
name: default
current-context: default
EOF
- name: Set up Python
uses: actions/setup-python@v4
with: