chore: initial import of CoHaiSe Cloud
PR — Ouverture automatique / create-pr (push) Failing after 1s
PR — Ouverture automatique / create-pr (push) Failing after 1s
Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs. Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
SRC="${1:-/app/dist}"
|
||||
DEST="${2:-/output}"
|
||||
|
||||
REL="releases/$(date -u +%Y%m%dT%H%M%SZ)-$$"
|
||||
KEEP=$(basename "$REL")
|
||||
|
||||
mkdir -p "$DEST/$REL"
|
||||
cp -a "$SRC/." "$DEST/$REL/"
|
||||
touch "$DEST/$REL"
|
||||
|
||||
ln -sfn "$REL" "$DEST/.current.tmp"
|
||||
mv -T "$DEST/.current.tmp" "$DEST/current"
|
||||
|
||||
find "$DEST/releases" -mindepth 1 -maxdepth 1 -type d ! -name "$KEEP" -mmin +5 -exec rm -rf {} + 2>/dev/null || true
|
||||
Reference in New Issue
Block a user