mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
fix(infra): prevent race condition in status-page-gen script execution
Copy the volume-mounted generate.sh to /tmp before executing, so a concurrent git pull doesn't corrupt the file mid-read. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0bac7e127f
commit
c7908e9f69
1 changed files with 2 additions and 1 deletions
|
|
@ -1345,7 +1345,8 @@ services:
|
|||
apk add --no-cache curl jq || { echo "apk add fehlgeschlagen, retry in 10s"; sleep 10; exit 1; }
|
||||
mkdir -p /output
|
||||
while true; do
|
||||
sh /generate.sh
|
||||
cp /generate.sh /tmp/generate.sh
|
||||
sh /tmp/generate.sh
|
||||
sleep 60
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue