Ajust the pipeline to the new api
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
6420a584c4
commit
06827001e6
@ -94,7 +94,7 @@ steps:
|
|||||||
ANSIBLE_CONFIG: ansible.cfg
|
ANSIBLE_CONFIG: ansible.cfg
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:80
|
GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:5000
|
||||||
REPO_NAME: rsyslog
|
REPO_NAME: rsyslog
|
||||||
SERVER_NAME: rsyslog-lab
|
SERVER_NAME: rsyslog-lab
|
||||||
# Optimize Ansible for container environment
|
# Optimize Ansible for container environment
|
||||||
|
|||||||
@ -303,12 +303,12 @@ if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
|
|||||||
echo " Verifying JSON storage on gitops-status-server..."
|
echo " Verifying JSON storage on gitops-status-server..."
|
||||||
sleep 1 # Brief delay to ensure server processed the POST
|
sleep 1 # Brief delay to ensure server processed the POST
|
||||||
|
|
||||||
VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/status.json" 2>&1 || true)
|
VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/api/status" 2>&1 || true)
|
||||||
if echo "$VERIFY_JSON" | grep -q "\"repo\".*\"$REPO_NAME\""; then
|
if echo "$VERIFY_JSON" | grep -q "\"repo\".*\"$REPO_NAME\""; then
|
||||||
echo " ✓ Verified: Latest JSON stored correctly on server"
|
echo " ✓ Verified: Latest JSON stored correctly on server"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Grafana Infinity datasource will now read the updated JSON from:"
|
echo " Grafana Infinity datasource will now read the updated JSON from:"
|
||||||
echo " $GITOPS_STATUS_SERVER_URL/status.json"
|
echo " $GITOPS_STATUS_SERVER_URL/api/status"
|
||||||
else
|
else
|
||||||
echo " ⚠ Warning: Could not verify JSON storage"
|
echo " ⚠ Warning: Could not verify JSON storage"
|
||||||
echo " Response from /status.json:"
|
echo " Response from /status.json:"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user