Skip to content

Commit 788bbc8

Browse files
committed
Fixed terraform vars
1 parent 6b8bcc5 commit 788bbc8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/terraform.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,20 @@ jobs:
197197
./ansible/deploy-api-jumpbox-to-vms.sh "$DB_HOST" "$DB_USER" "$DB_PASS" "$DB_NAME" "$JUMP_HOST" "$JUMP_USER"
198198
199199
# ... (previous steps remain the same) ...
200+
- name: Get Terraform outputs
201+
id: tf
202+
run: |
203+
echo "webapp_name=$(terraform output -raw app_service_name)" >> $GITHUB_OUTPUT
204+
echo "resource_group=$(terraform output -raw resource_group_name)" >> $GITHUB_OUTPUT
205+
echo "api_url=$(terraform output -raw lb_api_url)" >> $GITHUB_OUTPUT
206+
shell: bash
207+
208+
- name: Run Ansible
209+
run: |
210+
ansible-playbook deploy.yml \
211+
-e "app_service_name=${{ steps.tf.outputs.webapp_name }}" \
212+
-e "resource_group_name=${{ steps.tf.outputs.resource_group }}" \
213+
-e "lb_api_url=${{ steps.tf.outputs.api_url }}"
200214
201215
- name: 🎨 Deploy Frontend
202216
id: deploy_frontend

0 commit comments

Comments
 (0)