mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-27 03:13:10 +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
|
fetch-depth: 0
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p /home/runner/.kube/
|
mkdir -p /home/runner/.kube/
|
||||||
cp -rp ${GITHUB_WORKSPACE}/ansible_collections/kubevirt/core/tests/.kubeconfig /home/runner/.kube/config
|
cat <<- EOF > /home/runner/.kube/config
|
||||||
cat /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
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
clusters:
|
|
||||||
- cluster:
|
|
||||||
insecure-skip-tls-verify: true
|
|
||||||
server: http://localhost:12345
|
|
||||||
name: development
|
|
||||||
contexts:
|
|
||||||
- context:
|
|
||||||
cluster: development
|
|
||||||
user: developer
|
|
||||||
name: dev-frontend
|
|
||||||
current-context: dev-frontend
|
|
||||||
kind: Config
|
|
||||||
preferences: {}
|
|
||||||
users:
|
|
||||||
- name: developer
|
|
||||||
user:
|
|
||||||
token: ZDNffLzSlp8aSS0fht_tRnPMTOjxqgJGCyi_iy0ecUw
|
|
||||||
Reference in New Issue
Block a user