Skip to content

Commit ada7a86

Browse files
committed
Added terraform plan step
1 parent e7b2d0f commit ada7a86

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy-azure.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ env:
1717
jobs:
1818
deploy-infrastructure:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30 # Add timeout to prevent infinite runs
2021
steps:
2122
- uses: actions/checkout@v3
22-
23-
- name: Set up Python
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: '3.13'
2723

2824
- name: Azure Login
2925
uses: azure/login@v2
@@ -40,6 +36,14 @@ jobs:
4036
cd infra/azure
4137
terraform init
4238
39+
- name: Terraform Plan
40+
run: |
41+
cd infra/azure
42+
terraform plan -var="environment=${{ env.ENVIRONMENT }}" \
43+
-var="memgraph_username=${{ secrets.MEMGRAPH_USERNAME }}" \
44+
-var="memgraph_password=${{ secrets.MEMGRAPH_PASSWORD }}" \
45+
-var="subscription_id=${{ secrets.AZURE_SUBSCRIPTION_ID }}"
46+
4347
- name: Terraform Apply
4448
run: |
4549
cd infra/azure
@@ -69,8 +73,4 @@ jobs:
6973
run: |
7074
kubectl get pods
7175
kubectl get services
72-
73-
- name: Run Tests
74-
run: |
75-
source .venv/bin/activate
76-
pytest tests/ --cov=src
76+
kubectl wait --for=condition=ready pod -l app=memgraph --timeout=5m

0 commit comments

Comments
 (0)