Skip to content

Commit

Permalink
refactor github actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yurake committed May 24, 2021
1 parent eea45d0 commit 4db527d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kind-chaos-mesh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
CFG_BASE64: YXBpVmVyc2lvbjogY2hhb3MtbWVzaC5vcmcvdjFhbHBoYTENCmtpbmQ6IFBvZENoYW9zDQptZXRhZGF0YToNCiAgbmFtZTogY29udGFpbmVyLWtpbGwNCiAgbmFtZXNwYWNlOiBjaGFvcy10ZXN0aW5nDQpzcGVjOg0KICBhY3Rpb246IGNvbnRhaW5lci1raWxsDQogIG1vZGU6IG9uZQ0KICBjb250YWluZXJOYW1lOiAibXlzcWwiDQogIHNlbGVjdG9yOg0KICAgIG5hbWVzcGFjZXM6DQogICAgICAtIGRlZmF1bHQNCiAgICBsYWJlbFNlbGVjdG9yczoNCiAgICAgICJhcHAiOiAibXlzcWwiDQogIHNjaGVkdWxlcjoNCiAgICBjcm9uOiAiQGV2ZXJ5IDEwbSINCg==
CHAOS_MESH_VERSION: v1.0.0

- name: Check pods
- name: Check status
run: |
for i in `seq 10`
do
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/kind-openliberty-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
kubectl describe po $(kubectl get pods | awk '{print $1}' | grep openliberty)
kubectl logs $(kubectl get pods | awk '{print $1}' | grep openliberty)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand All @@ -52,14 +52,3 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-openliberty)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-openliberty)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
13 changes: 1 addition & 12 deletions .github/workflows/kind-quarkus-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ jobs:
kubectl -n monitoring wait --for=condition=complete --timeout=15m job/postmannewman-quarkus
kubectl -n monitoring describe job postmannewman-quarkus
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
- name: check log jaxrs-mysql
if: always()
run: |
Expand Down Expand Up @@ -98,7 +87,7 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/kind-spring-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
kubectl describe po $(kubectl get pods | awk '{print $1}' | grep spring)
kubectl logs $(kubectl get pods | awk '{print $1}' | grep spring)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand All @@ -52,14 +52,3 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-spring)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-spring)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
13 changes: 1 addition & 12 deletions .github/workflows/minikube-openliberty-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
kubectl describe po $(kubectl get pods | awk '{print $1}' | grep openliberty)
kubectl logs $(kubectl get pods | awk '{print $1}' | grep openliberty)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand All @@ -84,14 +84,3 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-openliberty)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-openliberty)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
13 changes: 1 addition & 12 deletions .github/workflows/minikube-quarkus-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ jobs:
kubectl -n monitoring wait --for=condition=complete --timeout=15m job/postmannewman-quarkus
kubectl -n monitoring describe job postmannewman-quarkus
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
- name: check log jaxrs-mysql
if: always()
run: |
Expand Down Expand Up @@ -135,7 +124,7 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-quarkus)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/minikube-security-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
target: "http://k8s.3tier.webapp/"
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/minikube-spring-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
kubectl describe po $(kubectl get pods | awk '{print $1}' | grep spring)
kubectl logs $(kubectl get pods | awk '{print $1}' | grep spring)
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand All @@ -84,14 +84,3 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-spring)
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep postmannewman-spring)
- name: check minikube status
if: always()
run: |
kubectl get po --all-namespaces=true
kubectl get nodes
kubectl get pv
kubectl get pvc
kubectl get all
kubectl get all -n monitoring
kubectl get ingress
df -h /
2 changes: 1 addition & 1 deletion .github/workflows/minikube-stress-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
run: |
kubectl -n monitoring describe po $(kubectl get pods -n monitoring | awk '{print $1}' | grep ab-${{ matrix.app }})
kubectl -n monitoring logs $(kubectl get pods -n monitoring | awk '{print $1}' | grep ab-${{ matrix.app }})
- name: check minikube status
- name: check status
if: always()
run: |
kubectl get po --all-namespaces=true
Expand Down

0 comments on commit 4db527d

Please sign in to comment.