Compare commits

...

3 commits

Author SHA1 Message Date
42bb79d0ac Merge branch 'main' into renovate/ghcr.io-open-webui-open-webui-0.x
All checks were successful
Lint on PR / Lint YAML files (pull_request) Successful in 9s
Deploy to Hosts / deploy (pull_request) Successful in 2m5s
2024-06-10 02:21:10 +00:00
841f2b5b12 Update .forgejo/workflows/CD.yml 2024-06-10 02:19:28 +00:00
435cc79fba Update .forgejo/workflows/CD.yml 2024-06-10 02:17:52 +00:00

View file

@ -42,6 +42,9 @@ jobs:
downloaders) downloaders)
target_host=${{ secrets.DOWNLOADERS_IP }} target_host=${{ secrets.DOWNLOADERS_IP }}
;; ;;
AI)
target_host="ai.lan"
;;
# Add cases for other folders/hosts # Add cases for other folders/hosts
*) *)
echo "Unknown folder: $folder" echo "Unknown folder: $folder"
@ -67,7 +70,10 @@ jobs:
- name: Fetch AWX Job Logs - name: Fetch AWX Job Logs
run: | run: |
# Fetch the most recent job from AWX # Fetch the most recent job from AWX
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')
# Fetch the logs for the job # Fetch the logs for the job
curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/ logs=$(curl -s -H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" https://awx.mafyuh.xyz/api/v2/jobs/$job_id/stdout/?format=json)
# Display the logs
echo "$logs"