-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Minikube on Windows | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
minikube: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Install Chocolatey | ||
# run: | | ||
# Set-ExecutionPolicy Bypass -Scope Process -Force; | ||
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | ||
# iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | ||
|
||
- name: Install Minikube and kubectl | ||
run: | | ||
choco install minikube kubernetes-cli -y | ||
minikube version | ||
kubectl version --client | ||
- name: Start Minikube | ||
run: | | ||
minikube start --driver=hyperv --hyperv-virtual-switch "Default Switch" | ||
minikube status | ||
- name: Run Kubernetes Commands | ||
run: | | ||
kubectl get nodes | ||
kubectl get pods -A | ||
- name: Stop Minikube | ||
run: | | ||
minikube stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,11 @@ on: | |
push: | ||
jobs: | ||
run: | ||
runs-on: windows-latest | ||
# services: | ||
# docker: | ||
# image: docker:dind | ||
# options: --privileged --shm-size=2g | ||
runs-on: ubuntu-22.04 | ||
services: | ||
docker: | ||
image: docker:dind | ||
options: --privileged --shm-size=2g | ||
steps: | ||
- name: Check out branch | ||
uses: actions/checkout@v4 | ||
|
@@ -55,17 +55,16 @@ jobs: | |
maven-version: '3.9.0' | ||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
# - name: Create k8s Kind Cluster | ||
# uses: helm/kind-action@v1 | ||
# with: | ||
# install_only: false | ||
- name: Set up KinD | ||
uses: helm/kind-action@v1 | ||
with: | ||
install_only: false | ||
- name: Run PiT | ||
shell: bash | ||
env: | ||
CC_KEY: ${{ secrets.CC_KEY }} | ||
CC_CERT: ${{ secrets.CC_CERT }} | ||
run: | | ||
choco install kind -y | ||
[ -n "${{ inputs.skipcurrent }}" ] && A="$A --skip-current" | ||
[ -n "${{ inputs.skipdev }}" ] && A="$A --skip-dev" | ||
[ -n "${{ inputs.debug }}" ] && A="$A --debug" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters