Update tracking and migrate to dockhand deploy
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/push/build unknown status
ci/woodpecker/push/deploy unknown status

This commit is contained in:
2026-07-13 22:36:47 -03:00
parent a44155d87d
commit 798cc0514b
3 changed files with 15 additions and 10 deletions
+8 -8
View File
@@ -15,23 +15,23 @@ depends_on:
- build
steps:
- name: Trigger Portainer stack redeploy
- name: Trigger Dockhand stack redeploy
image: curlimages/curl:latest
environment:
PORTAINER_WEBHOOK_URL:
from_secret: portainer_webhook_url
WEBHOOK_URL:
from_secret: dockhand_webhook_url
commands:
- set -e
- echo "=== Triggering Portainer stack redeploy ==="
- echo "=== Triggering Dockhand stack redeploy ==="
- |
resp=$(curl -s -w "\n%{http_code}" -X POST "$PORTAINER_WEBHOOK_URL")
resp=$(curl -s -w "\n%{http_code}" -X POST "$WEBHOOK_URL")
body=$(echo "$resp" | head -n -1)
code=$(echo "$resp" | tail -n 1)
if [ "$code" != "200" ] && [ "$code" != "204" ]; then
echo "Webhook failed (HTTP $code): $body"
exit 1
fi
echo "✓ Portainer redeploy triggered (HTTP $code)"
echo "✓ Dockhand redeploy triggered (HTTP $code)"
- name: Send Deploy Status Notification (success)
image: curlimages/curl
@@ -47,7 +47,7 @@ steps:
BODY=$(printf '{"channel_id":"%s","message":"[%s - Build #%s] Production Deploy success 🎉"}' "$MATTERMOST_CHANNEL_ID" "$CI_REPO" "$CI_PIPELINE_NUMBER")
curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" -H "Authorization: Bearer $MATTERMOST_BOT_ACCESS_TOKEN" "$MATTERMOST_POST_API_URL"
depends_on:
- Trigger Portainer stack redeploy
- Trigger Dockhand stack redeploy
when:
- status: [success]
@@ -65,6 +65,6 @@ steps:
BODY=$(printf '{"channel_id":"%s","message":"[%s - Build #%s] Production Deploy failure 💩"}' "$MATTERMOST_CHANNEL_ID" "$CI_REPO" "$CI_PIPELINE_NUMBER")
curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" -H "Authorization: Bearer $MATTERMOST_BOT_ACCESS_TOKEN" "$MATTERMOST_POST_API_URL"
depends_on:
- Trigger Portainer stack redeploy
- Trigger Dockhand stack redeploy
when:
- status: [failure]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "armandine",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"private": true,
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc",
+5
View File
@@ -67,6 +67,11 @@
defer
src="https://analytics.mifi.holdings/script.js"
data-website-id="753dc25e-84e9-48fa-b56c-a85ad6da8f87"
data-performance="true"
></script>
<script
defer src="https://analytics.mifi.holdings/recorder.js"
data-website-id="753dc25e-84e9-48fa-b56c-a85ad6da8f87"
></script>
{@html `<script type="application/ld+json">${JSON.stringify(jsonLd)}</script>`}