Skip to content

Commit 84082f4

Browse files
committed
fix: clone k8 cluster repo in k8 test
1 parent b04abc1 commit 84082f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/k8s_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
KUBERNETES_CLUSTER_NAME: "${{ vars.KUBERNETES_CLUSTER_NAME }}"
4444
KUBERNETES_NAMESPACE: "${{ vars.KUBERNETES_NAMESPACE }}"
4545
KUBERNETES_MANIFEST_PATH: "${{ vars.KUBERNETES_MANIFEST_PATH }}"
46+
KUBERNETES_CLUSTER_REPO_NAME: "${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"
4647
AZURE_RESOURCE_GROUP: "${{ vars.AZURE_RESOURCE_GROUP }}"
4748
AZURE_CONTAINER_REGISTRY: "${{ vars.AZURE_CONTAINER_REGISTRY }}"
4849
ENABLE_ALEMBIC_MIGRATIONS: "${{ vars.ENABLE_ALEMBIC_MIGRATIONS }}"
@@ -57,6 +58,9 @@ jobs:
5758
- name: Clone cicd-deployment-scripts
5859
run: git clone https://github.com/code-kern-ai/cicd-deployment-scripts.git
5960

61+
- name: Clone ${{ env.KUBERNETES_CLUSTER_REPO_NAME }}
62+
run: git clone https://github.com/code-kern-ai/${{ env.KUBERNETES_CLUSTER_REPO_NAME }}.git
63+
6064
# Install the latest version of Kubernetes CLI and configure the Kubernetes CLI configuration file with a Kubernetes Cloud user API token
6165
- name: Azure Cloud Login
6266
uses: azure/login@v2
@@ -81,6 +85,7 @@ jobs:
8185
- name: Run Test
8286
shell: bash
8387
run: |
88+
cd ${{ env.KUBERNETES_CLUSTER_REPO_NAME }}
8489
bash cicd-deployment-scripts/k8s/test.sh \
8590
-n ${{ env.KUBERNETES_NAMESPACE }} \
8691
-d ${{ github.event.repository.name }} \

0 commit comments

Comments
 (0)