Skip to content

Commit

Permalink
CI: Use docker driver for mk on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
bbusse committed Jan 11, 2024
1 parent 7affe70 commit c7b2219
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/setup-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v3
- name: Install podman
run: sudo apt install podman -y
- env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
- name: Start minikube
id: minikube
uses: medyagh/setup-minikube@latest
Expand Down
9 changes: 7 additions & 2 deletions setup-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,19 @@ readonly TF_FORCE_LOCAL
VERBOSE=0
readonly VERBOSE

minikube_driver="podman"

if [[ $(grep '^ID=' /etc/os-release | awk -F'=' '{print $2}') == "ubuntu" ]]; then
minikube_driver="docker"
fi

# Start minikube
if ! $(minikube status) or $(minikube status | grep Nonexistent\|Stopped); then
printf 'minikube is not running\nStarting minikube..'
if (( 0=="${VERBOSE}" )); then
minikube start --driver=podman
minikube start --driver="${minikube_driver}"
else
minikube start --driver=podman --alsologtostderr -v=7
minikube start --driver="${minikube_driver}" --alsologtostderr -v=7
fi
else
printf 'minikube is already running\n'
Expand Down

0 comments on commit c7b2219

Please sign in to comment.