mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +00:00
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:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user