Release 2025-05-19

This commit is contained in:
pluja
2025-05-19 10:23:36 +00:00
parent 2657f936bc
commit 565e9a0ad1
267 changed files with 49417 additions and 0 deletions

64
.platform/README.md Normal file
View File

@@ -0,0 +1,64 @@
# .platform Hooks
This directory contains deployment hooks that are executed during the deployment process. The structure follows AWS Elastic Beanstalk's `.platform` hooks pattern, although we are not using AWS we think it is a good practice to use this standard.
## Directory Structure
```
.platform/
├── hooks/
│ ├── predeploy/ # Scripts executed before staging deployment
│ └── postdeploy/ # Scripts executed after successful production deployment
```
## Hook Execution
- Scripts in each hook directory are executed in alphabetical order
- If any hook fails (returns non-zero), the deployment process is aborted
- Hook failures are reported through the notification system
## Available Hooks
### Predeploy Hooks
Located in `.platform/hooks/predeploy/`
- Executed before the staging deployment starts
- Use for tasks like:
- Environment validation
- Resource preparation
- Database migrations
- Asset compilation
### Postdeploy Hooks
Located in `.platform/hooks/postdeploy/`
- Executed after successful production deployment
- Use for tasks like:
- Cache warming
- Service notifications
- Cleanup operations
- Import triggers (current implementation)
## Example Hook
```bash
#!/bin/bash
# .platform/hooks/postdeploy/01_import_triggers.sh
cd ../../../
just import-triggers
```
## Environment
Hooks have access to all environment variables available to the deployment script, including:
- `HOOK_PUSHER`
- `HOOK_MESSAGE`
- `GITEA_USERNAME`
- `GITEA_TOKEN`
- `GITEA_SERVER`
- `GITEA_REPO_USERNAME`
- `GITEA_REPO_NAME`

View File

@@ -0,0 +1,4 @@
#!/bin/bash
pwd
just import-triggers