From 74d9d3e56f435a007ed4ea08507b88e45c17b286 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Wed, 13 Nov 2024 22:14:00 -0500 Subject: [PATCH] enhance CD --- .forgejo/workflows/CD.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 16fb31e..d70cec5 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -84,7 +84,7 @@ jobs: # Add cases for other folders/hosts *) echo "Unknown folder: $folder" - continue + exit 1 ;; esac echo "Triggering AWX Job with target host: $target_host and folder: $folder" @@ -92,6 +92,7 @@ jobs: -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" \ -d "{\"extra_vars\": {\"target_host\": \"$target_host\", \"folder\": \"$folder\"}}" \ "https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/" > /dev/null 2>&1 + echo "AWX Job Triggered, waiting for logs..." sleep 45