Skip to content

Commit 28d3464

Browse files
authored
added debug steps.
1 parent ef640b8 commit 28d3464

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/metro_vision_ai_app_recipe_sanity.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,46 @@ jobs:
3030
include:
3131
- ubuntu_version: ubuntu22
3232
steps:
33+
34+
- name: Determine branch
35+
id: get_branch
36+
run: |
37+
if [ -n "${{ inputs.branch }}" ]; then
38+
echo "branch=${{ inputs.branch }}" >> $GITHUB_OUTPUT
39+
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
40+
echo "branch=${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT
41+
else
42+
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
43+
fi
3344
- uses: actions/checkout@v4
3445
with:
3546
fetch-depth: 0
3647
persist-credentials: false
3748
path: edge-ai-suites-repo
38-
49+
ref: "sowmya/metro_ci_job"
3950
- name: Set up Python
4051
uses: actions/setup-python@v5
4152
with:
4253
python-version: '3.10'
54+
- name: Install kubectl
55+
uses: azure/setup-kubectl@v4
56+
with:
57+
version: v1.29.0
4358

59+
- name: Install Helm
60+
uses: azure/setup-helm@v4
61+
with:
62+
version: v3.14.0
63+
64+
- name: Create KinD cluster
65+
uses: helm/kind-action@v1
66+
with:
67+
cluster_name: ci-cluster
68+
69+
- name: Verify cluster
70+
run: |
71+
kubectl get nodes
72+
kubectl cluster-info
4473
- name: Log in to GitHub Container Registry
4574
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #3.4.0
4675
with:

0 commit comments

Comments
 (0)