add runner to cd
This commit is contained in:
parent
c2c1eb49a9
commit
f0e63059c6
1 changed files with 3 additions and 4 deletions
|
@ -75,6 +75,9 @@ jobs:
|
||||||
portainer)
|
portainer)
|
||||||
target_host="port.lan"
|
target_host="port.lan"
|
||||||
;;
|
;;
|
||||||
|
runner)
|
||||||
|
target_host="runner.lan"
|
||||||
|
;;
|
||||||
twingate)
|
twingate)
|
||||||
target_host="twingate.lan"
|
target_host="twingate.lan"
|
||||||
;;
|
;;
|
||||||
|
@ -98,10 +101,6 @@ jobs:
|
||||||
job_id=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/job_templates/13/jobs/?order_by=-id | jq -r '.results[0].id')
|
job_id=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/job_templates/13/jobs/?order_by=-id | jq -r '.results[0].id')
|
||||||
logs=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/?format=json)
|
logs=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/?format=json)
|
||||||
echo "AWX Job Logs for folder: $folder"
|
echo "AWX Job Logs for folder: $folder"
|
||||||
echo "Range:"
|
|
||||||
echo "Start: $(echo "$logs" | jq -r '.range.start')"
|
|
||||||
echo "End: $(echo "$logs" | jq -r '.range.end')"
|
|
||||||
echo "Absolute End: $(echo "$logs" | jq -r '.range.absolute_end')"
|
|
||||||
echo "Content:"
|
echo "Content:"
|
||||||
echo "$(echo "$logs" | jq -r '.content')"
|
echo "$(echo "$logs" | jq -r '.content')"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue