refactor(umami): migrate PostgreSQL to portable block storage
This commit is contained in:
2 files changed
+42
-21
No files matched your search
+33
-14
@@ -15,22 +15,41 @@ depends_on:
|
||||
|
||||
steps:
|
||||
- name: Trigger Dockhand Deploy
|
||||
image: curlimages/curl:latest
|
||||
image: alpine:3.22
|
||||
depends_on: [push-images]
|
||||
environment:
|
||||
WEBHOOK_URL:
|
||||
from_secret: dockhand_webhook_url
|
||||
DOCKHAND_WEBHOOK_URL:
|
||||
from_secret: dockhand_webhook_url
|
||||
DOCKHAND_WEBHOOK_SECRET:
|
||||
from_secret: dockhand_webhook_secret
|
||||
commands:
|
||||
- set -e
|
||||
- echo "=== Triggering Dockhand deploy ==="
|
||||
- |
|
||||
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 "✓ Dockhand deploy triggered (HTTP $code)"
|
||||
- apk add --no-cache curl openssl
|
||||
- export PAYLOAD='{}'
|
||||
- export SIGNATURE="sha256=$(printf %s "$PAYLOAD" | openssl dgst -sha256 -hmac "$DOCKHAND_WEBHOOK_SECRET" -hex | sed 's/^.* //')"
|
||||
- set -e
|
||||
- echo "=== Triggering Dockhand deploy ==="
|
||||
- >-
|
||||
curl --fail --show-error --silent --request POST "$DOCKHAND_WEBHOOK_URL"
|
||||
--header 'Content-Type: application/json' --header "X-Hub-Signature-256: $SIGNATURE"
|
||||
--data "$PAYLOAD"
|
||||
# image: curlimages/curl:latest
|
||||
# environment:
|
||||
# WEBHOOK_SECRET:
|
||||
# from_secret: dockhand_webhook_secret
|
||||
# WEBHOOK_URL:
|
||||
# from_secret: dockhand_webhook_url
|
||||
# commands:
|
||||
# - set -e
|
||||
# - echo "=== Triggering Dockhand deploy ==="
|
||||
# - |
|
||||
# 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 "✓ Dockhand deploy triggered (HTTP $code)"
|
||||
|
||||
- name: Send Deploy Status Notification (success)
|
||||
image: curlimages/curl
|
||||
|
||||
Reference in new issue
Block a user