Update .forgejo/workflows/CD.yml
This commit is contained in:
parent
8831f9594b
commit
5acc2b13d1
1 changed files with 6 additions and 10 deletions
|
@ -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
|
|
Reference in a new issue