ci: use minikube github action instead script
using github action for minikube will avoid
unwanted errors and probably will be more stable
than manual install. But both script and action
both uses almost same time for installation so
there we don't have preference.
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6c4d8205b6)
This commit is contained in:
1 parent
79d82c0b08
commit
3d1956e1e4
3 files changed
+30
-39
No files matched your search
@@ -18,10 +18,23 @@ runs:
|
||||
with:
|
||||
go-version: "1.25"
|
||||
|
||||
- name: Setup Minikube
|
||||
- name: Install cri-dockerd
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
run: |
|
||||
tests/scripts/github-action-helper.sh install_minikube_with_none_driver v1.34.0
|
||||
curl -LO https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.21/cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
sudo dpkg -i cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
rm -f cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
|
||||
- name: Setup Minikube
|
||||
uses: medyagh/setup-minikube@latest
|
||||
with:
|
||||
kubernetes-version: v1.34.0
|
||||
driver: none
|
||||
container-runtime: docker
|
||||
memory: 6g
|
||||
cpus: 2
|
||||
addons: ingress
|
||||
cni: calico
|
||||
|
||||
- name: install deps
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
@@ -22,10 +22,23 @@ runs:
|
||||
with:
|
||||
go-version: "1.25"
|
||||
|
||||
- name: Setup Minikube
|
||||
- name: Install cri-dockerd
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
run: |
|
||||
tests/scripts/github-action-helper.sh install_minikube_with_none_driver ${{ inputs.kubernetes-version }}
|
||||
curl -LO https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.21/cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
sudo dpkg -i cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
rm -f cri-dockerd_0.3.21.3-0.ubuntu-focal_amd64.deb
|
||||
|
||||
- name: Setup Minikube
|
||||
uses: medyagh/setup-minikube@latest
|
||||
with:
|
||||
kubernetes-version: ${{ inputs.kubernetes-version }}
|
||||
driver: none
|
||||
container-runtime: docker
|
||||
memory: 6g
|
||||
cpus: 2
|
||||
addons: ingress
|
||||
cni: calico
|
||||
|
||||
- name: print k8s cluster status
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
Reference in new issue
Block a user