Update .forgejo/workflows/CD.yml

This commit is contained in:
Matt Reeves 2024-06-09 23:27:17 +00:00
parent 8831f9594b
commit 5acc2b13d1

View file

@ -53,14 +53,10 @@ jobs:
- name: Trigger AWX Job - name: Trigger AWX Job
run: | run: |
curl -X POST \ TARGET_HOST="${{ steps.determine-host.outputs.target_host }}"
-H "Content-Type: application/json" \ FOLDER="${{ steps.determine-host.outputs.folder }}"
echo "Triggering AWX Job with target host: $TARGET_HOST and folder: $FOLDER"
curl -X POST -k -H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" \ -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" \
-d '{ -d "{\"extra_vars\": {\"target_host\": \"$TARGET_HOST\", \"folder\": \"$FOLDER\"}}" \
"extra_vars": { "https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/"
"target_host": "'"${{ steps.determine-host.outputs.target_host }}"'",
"folder": "'"${{ steps.determine-host.outputs.folder }}"'"
}
}' \
"https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/" \
-v