Skip to content

Commit

Permalink
Fix if condition failure
Browse files Browse the repository at this point in the history
  • Loading branch information
titigmr authored Jun 6, 2023
1 parent 24a2cf6 commit e834079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
uses: actions/checkout@v2

- name: Build and install basegun with helm and test it's running
id: tests
run: |
BUILD_TARGET=test TAG=$(make get-current-tag) docker-compose -f docker-compose-dev.yml build backend
BUILD_TARGET=test TAG=$(make get-current-tag) docker-compose -f docker-compose-dev.yml build frontend
Expand All @@ -69,7 +70,7 @@ jobs:
for i in $(kubectl get deploy -o name); do kubectl rollout status $i -w --timeout=130s; done
- name: Display pod logs on failure
if: ${{ job.status != 'Success' }}
if: failure() && steps.tests.outcome == 'failure'
run: |
kubectl describe pods
kubectl logs --all-containers=true --tail=100
Expand Down

0 comments on commit e834079

Please sign in to comment.