Skip to content

Commit

Permalink
chore: improved validate ci
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Dec 2, 2023
1 parent 308b4d4 commit 35110b7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ jobs:
- name: Load Image into Kind
run: kind load docker-image ext-cardano-dbsync:1.0 --name k8scluster

- name: Apply manifest
run: kubectl apply -f test/manifest.yaml

- name: Wait containers is ready
run: sleep 8;

- name: Apply manifests
run: |
kubectl apply -f test/manifest.yaml
kubectl apply -f test/dbsyncport.yaml
run: kubectl apply -f test/dbsyncport.yaml

- name: Validate if CRD is working
run: |
sleep 8;
# kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+'
# kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+'
counter=0; while ((counter++ < 6)); do kubectl logs -n project "$(kubectl get pods -n project | grep -oP 'controller-\w+-\w+')"; sleep 2; done;
Expand All @@ -49,4 +52,3 @@ jobs:
# run: |
# kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Password: \K\S+'
# kubectl describe dbsyncports.demeter.run --namespace project useraccess | grep -oP 'Username: \K\S+'

0 comments on commit 35110b7

Please sign in to comment.