Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: clyi <[email protected]>
  • Loading branch information
changluyi committed Aug 1, 2024
1 parent c647fc6 commit bd90718
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2769,56 +2769,56 @@ jobs:
- name: Install Kube-OVN
id: install
run: make kind-install
run: make kind-install-ovn-ipsec

- name: Run Ovn IPSEC E2E
id: ovn-ipsec-e2e
id: kube-ovn-ipsec-e2e
working-directory: ${{ env.E2E_DIR }}
env:
E2E_BRANCH: ${{ github.base_ref || github.ref_name }}
run: make ovn-ipsec-e2e
run: make kube-ovn-ipsec-e2e

- name: Collect k8s events
if: failure() && ( steps.ovn-ipsec-e2e.conclusion == 'failure')
run: |
kubectl get events -A -o yaml > ovn-ipsec-e2e-events.yaml
tar zcf ovn-ipsec-e2e-events.tar.gz ovn-ipsec-e2e-events.yaml
kubectl get events -A -o yaml > kube-ovn-ipsec-e2e-events.yaml
tar zcf kube-ovn-ipsec-e2e-events.tar.gz kube-ovn-ipsec-e2e-events.yaml
- name: Upload k8s events
uses: actions/upload-artifact@v4
if: failure() && (steps.ovn-ipsec-e2e.conclusion == 'failure')
if: failure() && (steps.kube-ovn-ipsec-e2e.conclusion == 'failure')
with:
name: ovn-ipsec-e2e-events
path: ovn-ipsec-e2e-events.tar.gz
name: kube-ovn-ipsec-e2e-events
path: kube-ovn-ipsec-e2e-events.tar.gz

- name: Collect apiserver audit logs
if: failure() && (steps.ovn-ipsec-e2e.conclusion == 'failure')
if: failure() && (steps.kube-ovn-ipsec-e2e.conclusion == 'failure')
run: |
docker cp kube-ovn-control-plane:/var/log/kubernetes/kube-apiserver-audit.log .
tar zcf ovn-ipsec-e2e-audit-log.tar.gz kube-apiserver-audit.log
tar zcf kube-ovn-ipsec-e2e-audit-log.tar.gz kube-apiserver-audit.log
- name: Upload apiserver audit logs
uses: actions/upload-artifact@v4
if: failure() && (steps.ovn-ipsec-e2e.conclusion == 'failure')
if: failure() && (steps.kube-ovn-ipsec-e2e.conclusion == 'failure')
with:
name: ovn-ipsec-e2e-audit-log
path: ovn-ipsec-e2e-audit-log.tar.gz
name: kube-ovn-ipsec-e2e-audit-log
path: kube-ovn-ipsec-e2e-audit-log.tar.gz

- name: kubectl ko log
if: failure() && (steps.ovn-ipsec-e2e.conclusion == 'failure')
if: failure() && (steps.kube-ovn-ipsec-e2e.conclusion == 'failure')
run: |
make kubectl-ko-log
mv kubectl-ko-log.tar.gz ovn-ipsec-e2e-ko-log.tar.gz
mv kubectl-ko-log.tar.gz kube-ovn-ipsec-e2e-ko-log.tar.gz
- name: upload kubectl ko log
uses: actions/upload-artifact@v4
if: failure() && (steps.ovn-ipsec-e2e.conclusion == 'failure')
if: failure() && (steps.kube-ovn-ipsec-e2e.conclusion == 'failure')
with:
name: ovn-ipsec-e2e-ko-log
path: ovn-ipsec-e2e-ko-log.tar.gz
name: kube-ovn-ipsec-e2e-ko-log
path: kube-ovn-ipsec-e2e-ko-log.tar.gz

- name: Check kube ovn pod restarts
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.ovn-ipsec-e2e.conclusion == 'failure')) }}
if: ${{ success() || (failure() && (steps.install.conclusion == 'failure' || steps.kube-ovn-ipsec-e2e.conclusion == 'failure')) }}
run: make check-kube-ovn-pod-restarts
push:
name: Push Images
Expand Down

0 comments on commit bd90718

Please sign in to comment.