Skip to content

Commit c79cc5d

Browse files
author
CodingNagger
committed
Initial commit
0 parents  commit c79cc5d

14 files changed

Lines changed: 1407 additions & 0 deletions

File tree

LICENCE.md

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Minikube wait action
2+
3+
This action waits until all your pods a VM-free Kubernetes cluster using Minikube.
4+
5+
## Pre-requisites
6+
7+
Your Actions workflow has a kubernetes setup. You may use [minikube-setup-action](https://github.com/marketplace/actions/minikube-setup-action) for that.
8+
9+
## Inputs
10+
11+
### `max-retry-attempts`
12+
13+
**Optional** Maximum of times the check can be carried on. Default `10`.
14+
15+
### `retry-delay`
16+
17+
**Optional** Time to wait (in seconds) before attempting the check after a failure. Default `30`.
18+
19+
## Example usage
20+
21+
```yaml
22+
name: "Minikube workflow"
23+
on: [push]
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@master
30+
- name: Wait Minikube
31+
uses: CodingNagger/minikube-setup-action@v1.0.2
32+
- name: Launch Minikube
33+
run: eval ${{ steps.minikube.outputs.launcher }}
34+
- name: Install Nginx pod
35+
run: kubectl apply -f https://k8s.io/examples/application/deployment.yaml
36+
- name: Wait for pods
37+
uses: CodingNagger/minikube-wait-action@v1.0.0
38+
- name: Check pods
39+
run: |
40+
kubectl get pods
41+
```

action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'minikube-wait-action'
2+
description: 'Waits for Github Actions started Kubernetes pods to be in a healthy state.'
3+
branding:
4+
icon: 'watch'
5+
color: 'blue'
6+
inputs:
7+
max-retry-attempts:
8+
description: 'Maximum of times the check can be carried on.'
9+
required: false
10+
default: 10
11+
retry-delay:
12+
description: 'Time to wait (in seconds) before attempting the check after a failure.'
13+
required: false
14+
default: 30
15+
runs:
16+
using: 'node12'
17+
main: 'src/index.js'

node_modules/@actions/core/README.md

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.d.ts

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.js

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/lib/command.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)