env-diff, verify-deploy and notify actions #3
Labels
No labels
auto-update
blocked
dependency
major
release-blocker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
You do not have permission to read 3 dependencies
Reference
Wi3eDigital/laravel-deploy-actions#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Each repo carries its own copy of the env report and deploy verification scripts. Move them here as composite actions, plus a
notifyaction for the n8n "Deploy notify" webhook.Plan: https://forgejo.entwirr.me/Wi3eDigital/laravel-deploy-actions/src/branch/main/docs/plan.md (sections "What this repo ships" and "Notifications").
Tasks
env-diff/: port.bin/env-diff.shand.bin/lib/dotenv.awkfrom Aevana/aevana (git-ref mode,--files,--baseline-file,ENV_DIFF_PATH); output the Markdown reportverify-deploy/: port.bin/verify-deploy.shfrom Aevana/aevana (attempts, delay, max time,--diagnose, host masking, no Set-Cookie output)verify-deploy: accept/versionas plain text or{"version": "vX.Y.Z"}JSONverify-deploy: input for the user agent (today hardcodedaevana-deploy-verify/1)notify/: build and POST the plan payload (schema: 1, project, repo, env, event, severity, version, title, body, url, reasons, dedup_key, ts) with headerX-Notify-Tokennotify:continue-on-errorbehaviour by default (never fails the job)notify:required: truemode that fails the step on a non-2xx response and sets commit statusnotify/pre-prod(successon delivery)Acceptance criteria
<url>/versionserves the tag, 1 when it never does, 2 on usage errors; the base URL is never printed/versionresponsesrelease.critical,promote.due,promote.blocked,deploy.failed,deploy.succeeded,schedule.failed,heartbeatrequirednever fails the job, also when n8n is downrequired: truefails on delivery failure and setsnotify/pre-prod, which the promote gate reads (24h rule)Blocked by
Nothing. Starts after the plan PR #1 is merged.